mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-06-17 08:06:38 +00:00
Fix testing
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
parent
6e6d7d778f
commit
f9008d7c93
1 changed files with 5 additions and 3 deletions
|
@ -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
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue