diff options
| author | DanConwayDev <DanConwayDev@protonmail.com> | 2025-12-31 11:27:03 +0000 |
|---|---|---|
| committer | DanConwayDev <DanConwayDev@protonmail.com> | 2025-12-31 11:27:03 +0000 |
| commit | 3c7c22365d31cbaef5621c8d9964562cd0b29467 (patch) | |
| tree | 734fb91087382dc2fe50e98eb3cd6509a738ec33 /grasp-audit/src/specs/grasp01/push_authorization.rs | |
| parent | fa76364b502a04dcabae36c440fe906fe7cf811d (diff) | |
test: fix test_head_set_after_git_push_with_required_oids
Diffstat (limited to 'grasp-audit/src/specs/grasp01/push_authorization.rs')
| -rw-r--r-- | grasp-audit/src/specs/grasp01/push_authorization.rs | 10 |
1 files changed, 9 insertions, 1 deletions
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"; | |||
| 34 | use crate::{ | 34 | use crate::{ |
| 35 | clone_repo, create_commit, create_deterministic_commit_with_variant, try_push, try_push_to_ref, | 35 | clone_repo, create_commit, create_deterministic_commit_with_variant, try_push, try_push_to_ref, |
| 36 | AuditClient, CommitVariant, FixtureKind, TestContext, TestResult, | 36 | AuditClient, CommitVariant, FixtureKind, TestContext, TestResult, |
| 37 | RECURSIVE_MAINTAINER_DETERMINISTIC_COMMIT_HASH, | ||
| 37 | }; | 38 | }; |
| 38 | use nostr_sdk::prelude::*; | 39 | use nostr_sdk::prelude::*; |
| 39 | use std::fs; | 40 | use std::fs; |
| @@ -1635,6 +1636,10 @@ impl PushAuthorizationTests { | |||
| 1635 | TagKind::custom("refs/heads/develop1"), | 1636 | TagKind::custom("refs/heads/develop1"), |
| 1636 | vec![commit_hash.clone()], | 1637 | vec![commit_hash.clone()], |
| 1637 | )) | 1638 | )) |
| 1639 | .tag(Tag::custom( | ||
| 1640 | TagKind::custom("refs/heads/develop"), | ||
| 1641 | vec![RECURSIVE_MAINTAINER_DETERMINISTIC_COMMIT_HASH.to_string()], | ||
| 1642 | )) | ||
| 1638 | .build(client.keys()) | 1643 | .build(client.keys()) |
| 1639 | { | 1644 | { |
| 1640 | Ok(e) => e, | 1645 | Ok(e) => e, |
| @@ -1646,7 +1651,10 @@ impl PushAuthorizationTests { | |||
| 1646 | }; | 1651 | }; |
| 1647 | 1652 | ||
| 1648 | // Send the state event (commit doesn't exist on relay yet) | 1653 | // Send the state event (commit doesn't exist on relay yet) |
| 1649 | if let Err(e) = client.send_event(state_event).await { | 1654 | if let Err(e) = client |
| 1655 | .send_event_expect_purgatory_not_served(state_event) | ||
| 1656 | .await | ||
| 1657 | { | ||
| 1650 | let _ = fs::remove_dir_all(&clone_path); | 1658 | let _ = fs::remove_dir_all(&clone_path); |
| 1651 | return TestResult::new(test_name, "GRASP-01:git-http:38", desc) | 1659 | return TestResult::new(test_name, "GRASP-01:git-http:38", desc) |
| 1652 | .fail(format!("Failed to send state event: {}", e)); | 1660 | .fail(format!("Failed to send state event: {}", e)); |