summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorCyborus <cyborus@cyborus.xyz>2023-12-11 20:31:52 +0100
committerCyborus <cyborus@cyborus.xyz>2023-12-11 21:52:45 +0100
commita2ff083f715f22a49ebbf3d40aca8373174f5448 (patch)
treec5fe2622a69c2b5ce108cf40026aa3cfcaa7405f /tests
parenttest editing release (diff)
downloadforgejo-api-a2ff083f715f22a49ebbf3d40aca8373174f5448.tar.xz
forgejo-api-a2ff083f715f22a49ebbf3d40aca8373174f5448.zip
fix release attachments
Diffstat (limited to 'tests')
-rw-r--r--tests/ci_test.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/ci_test.rs b/tests/ci_test.rs
index 993b8ab..d8a4fa5 100644
--- a/tests/ci_test.rs
+++ b/tests/ci_test.rs
@@ -154,7 +154,7 @@ async fn repo(api: &forgejo_api::Forgejo) -> eyre::Result<()> {
let release_latest = api.latest_release("TestingAdmin", "test").await.wrap_err("failed to find latest release")?;
ensure!(release_by_tag == release_latest, "releases not equal");
- let attachment = api.create_release_attachment("TestingAdmin", "test", release.id, "test.txt", b"This is a file!").await.wrap_err("failed to create release attachment")?;
+ let attachment = api.create_release_attachment("TestingAdmin", "test", release.id, "test.txt", b"This is a file!".to_vec()).await.wrap_err("failed to create release attachment")?;
api.delete_release_attachment("TestingAdmin", "test", release.id, attachment.id).await.wrap_err("failed to deleted attachment")?;
api.delete_release("TestingAdmin", "test", release.id).await.wrap_err("failed to delete release")?;