From a2ff083f715f22a49ebbf3d40aca8373174f5448 Mon Sep 17 00:00:00 2001 From: Cyborus Date: Mon, 11 Dec 2023 14:31:52 -0500 Subject: fix release attachments --- tests/ci_test.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests') 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")?; -- cgit v1.2.3