summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorCyborus <cyborus@cyborus.xyz>2023-12-12 19:17:00 +0100
committerCyborus <cyborus@cyborus.xyz>2023-12-12 19:17:00 +0100
commit078aa2ef5c2bb4237a20d4b7c88b0d237cbbe5e8 (patch)
tree29efad060f9d232080dfb5deb4ed32b72d859bc8 /tests
parentlabel admin test correctly (diff)
downloadforgejo-api-078aa2ef5c2bb4237a20d4b7c88b0d237cbbe5e8.tar.xz
forgejo-api-078aa2ef5c2bb4237a20d4b7c88b0d237cbbe5e8.zip
wrap key errors
Diffstat (limited to 'tests')
-rw-r--r--tests/ci_test.rs4
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(),