From ec064c82947c53f8d535def20ffb20cf1f2d67a9 Mon Sep 17 00:00:00 2001 From: Jiahao XU Date: Wed, 12 Jun 2024 20:14:09 +1000 Subject: [PATCH] Reduce test cases in `rate_limited_test_has_release_artifact_and_download_artifacts` Signed-off-by: Jiahao XU --- crates/binstalk-git-repo-api/src/gh_api_client.rs | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/crates/binstalk-git-repo-api/src/gh_api_client.rs b/crates/binstalk-git-repo-api/src/gh_api_client.rs index 3ed8a81d..831c9a5d 100644 --- a/crates/binstalk-git-repo-api/src/gh_api_client.rs +++ b/crates/binstalk-git-repo-api/src/gh_api_client.rs @@ -583,16 +583,10 @@ mod test { #[tokio::test] async fn rate_limited_test_has_release_artifact_and_download_artifacts() { - const RELEASES: [(GhRelease, &[&str]); 2] = [ - ( - cargo_binstall_v0_20_1::RELEASE, - cargo_binstall_v0_20_1::ARTIFACTS, - ), - ( - cargo_audit_v_0_17_6::RELEASE, - cargo_audit_v_0_17_6::ARTIFACTS, - ), - ]; + const RELEASES: [(GhRelease, &[&str]); 1] = [( + cargo_binstall_v0_20_1::RELEASE, + cargo_binstall_v0_20_1::ARTIFACTS, + )]; const NON_EXISTENT_RELEASES: [GhRelease; 1] = [GhRelease { repo: GhRepo { owner: CompactString::new_inline("cargo-bins"),