diff options
author | Cyborus <cyborus@cyborus.xyz> | 2023-12-12 19:17:00 +0100 |
---|---|---|
committer | Cyborus <cyborus@cyborus.xyz> | 2023-12-12 19:17:00 +0100 |
commit | 078aa2ef5c2bb4237a20d4b7c88b0d237cbbe5e8 (patch) | |
tree | 29efad060f9d232080dfb5deb4ed32b72d859bc8 /tests | |
parent | label admin test correctly (diff) | |
download | forgejo-api-078aa2ef5c2bb4237a20d4b7c88b0d237cbbe5e8.tar.xz forgejo-api-078aa2ef5c2bb4237a20d4b7c88b0d237cbbe5e8.zip |
wrap key errors
Diffstat (limited to 'tests')
-rw-r--r-- | tests/ci_test.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/ci_test.rs b/tests/ci_test.rs index e49c72e..b65ba03 100644 --- a/tests/ci_test.rs +++ b/tests/ci_test.rs @@ -299,8 +299,8 @@ async fn admin(api: &forgejo_api::Forgejo) -> eyre::Result<()> { read_only: None, title: "Example Key".into(), }; - let key = api.admin_add_key("Pipis", key_opt).await?; - api.admin_delete_key("Pipis", key.id).await?; + let key = api.admin_add_key("Pipis", key_opt).await.wrap_err("failed to create key")?; + api.admin_delete_key("Pipis", key.id).await.wrap_err("failed to delete key")?; let rename_opt = forgejo_api::RenameUserOption { new_username: "Bepis".into(), |