From 6db4879d15c1d9cb9d96368daf0aa2303593b672 Mon Sep 17 00:00:00 2001 From: Cyborus Date: Mon, 11 Dec 2023 12:18:55 -0500 Subject: [PATCH] ensure repo allows pull requests --- tests/ci_test.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/ci_test.rs b/tests/ci_test.rs index c3db66d..d8bb859 100644 --- a/tests/ci_test.rs +++ b/tests/ci_test.rs @@ -79,6 +79,7 @@ async fn repo(api: &forgejo_api::Forgejo) -> eyre::Result<()> { trust_model: forgejo_api::TrustModel::Default, }; let remote_repo = api.create_repo(repo_opt).await?; + ensure!(remote_repo.has_pull_requests, "repo does not accept pull requests"); tokio::time::sleep(std::time::Duration::from_secs(3)).await; ensure!(remote_repo.owner.login == "TestingAdmin", "repo owner is not \"TestingAdmin\""); ensure!(remote_repo.name == "test", "repo owner is not \"test\"");