From 3c7c22365d31cbaef5621c8d9964562cd0b29467 Mon Sep 17 00:00:00 2001 From: DanConwayDev Date: Wed, 31 Dec 2025 11:27:03 +0000 Subject: test: fix test_head_set_after_git_push_with_required_oids --- grasp-audit/src/specs/grasp01/push_authorization.rs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'grasp-audit/src/specs/grasp01/push_authorization.rs') diff --git a/grasp-audit/src/specs/grasp01/push_authorization.rs b/grasp-audit/src/specs/grasp01/push_authorization.rs index ed69d6d..b657673 100644 --- a/grasp-audit/src/specs/grasp01/push_authorization.rs +++ b/grasp-audit/src/specs/grasp01/push_authorization.rs @@ -34,6 +34,7 @@ const PR_TEST_COMMIT_HASH: &str = "8935183ff722bf04e861928c6a7e50868c6ca4a6"; use crate::{ clone_repo, create_commit, create_deterministic_commit_with_variant, try_push, try_push_to_ref, AuditClient, CommitVariant, FixtureKind, TestContext, TestResult, + RECURSIVE_MAINTAINER_DETERMINISTIC_COMMIT_HASH, }; use nostr_sdk::prelude::*; use std::fs; @@ -1635,6 +1636,10 @@ impl PushAuthorizationTests { TagKind::custom("refs/heads/develop1"), vec![commit_hash.clone()], )) + .tag(Tag::custom( + TagKind::custom("refs/heads/develop"), + vec![RECURSIVE_MAINTAINER_DETERMINISTIC_COMMIT_HASH.to_string()], + )) .build(client.keys()) { Ok(e) => e, @@ -1646,7 +1651,10 @@ impl PushAuthorizationTests { }; // Send the state event (commit doesn't exist on relay yet) - if let Err(e) = client.send_event(state_event).await { + if let Err(e) = client + .send_event_expect_purgatory_not_served(state_event) + .await + { let _ = fs::remove_dir_all(&clone_path); return TestResult::new(test_name, "GRASP-01:git-http:38", desc) .fail(format!("Failed to send state event: {}", e)); -- cgit v1.2.3