Reduce test cases in rate_limited_test_has_release_artifact_and_download_artifacts

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
Jiahao XU 2024-06-12 20:14:09 +10:00
parent af30cfe2e1
commit ec064c8294
No known key found for this signature in database
GPG key ID: 76D1E687CA3C4928

View file

@ -583,16 +583,10 @@ mod test {
#[tokio::test] #[tokio::test]
async fn rate_limited_test_has_release_artifact_and_download_artifacts() { async fn rate_limited_test_has_release_artifact_and_download_artifacts() {
const RELEASES: [(GhRelease, &[&str]); 2] = [ const RELEASES: [(GhRelease, &[&str]); 1] = [(
( cargo_binstall_v0_20_1::RELEASE,
cargo_binstall_v0_20_1::RELEASE, cargo_binstall_v0_20_1::ARTIFACTS,
cargo_binstall_v0_20_1::ARTIFACTS, )];
),
(
cargo_audit_v_0_17_6::RELEASE,
cargo_audit_v_0_17_6::ARTIFACTS,
),
];
const NON_EXISTENT_RELEASES: [GhRelease; 1] = [GhRelease { const NON_EXISTENT_RELEASES: [GhRelease; 1] = [GhRelease {
repo: GhRepo { repo: GhRepo {
owner: CompactString::new_inline("cargo-bins"), owner: CompactString::new_inline("cargo-bins"),