Fix testing

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
Jiahao XU 2024-05-09 23:32:30 +10:00
parent 6e6d7d778f
commit f9008d7c93
No known key found for this signature in database
GPG key ID: 76D1E687CA3C4928

View file

@ -387,11 +387,13 @@ mod test {
release,
artifact_name: "1234".to_compact_string(),
})
.await
.unwrap_err();
.await;
assert!(
matches!(err, GhApiError::NotFound | GhApiError::RateLimit { .. }),
matches!(
err,
Ok(None) | Err(GhApiError::NotFound | GhApiError::RateLimit { .. })
),
"err = {:#?}",
err
);