upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/grasp-audit/src/specs
diff options
context:
space:
mode:
authorDanConwayDev <DanConwayDev@protonmail.com>2025-12-31 11:35:39 +0000
committerDanConwayDev <DanConwayDev@protonmail.com>2025-12-31 11:35:39 +0000
commit91815d71549f98bcd425b53ee52fcb907b624f02 (patch)
tree13eed15f3fde46c3b6ffb9be77bc8bed93ed8be9 /grasp-audit/src/specs
parent3c7c22365d31cbaef5621c8d9964562cd0b29467 (diff)
test: fix test_push_to_nostr_ref_with_correct_commit_after_event_received_accepted_and_event_served
Diffstat (limited to 'grasp-audit/src/specs')
-rw-r--r--grasp-audit/src/specs/grasp01/push_authorization.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/grasp-audit/src/specs/grasp01/push_authorization.rs b/grasp-audit/src/specs/grasp01/push_authorization.rs
index b657673..ef494da 100644
--- a/grasp-audit/src/specs/grasp01/push_authorization.rs
+++ b/grasp-audit/src/specs/grasp01/push_authorization.rs
@@ -29,7 +29,7 @@
29/// 29///
30/// Run `test_pr_test_commit_hash_discovery` to discover/verify this value. 30/// Run `test_pr_test_commit_hash_discovery` to discover/verify this value.
31#[allow(dead_code)] 31#[allow(dead_code)]
32const PR_TEST_COMMIT_HASH: &str = "8935183ff722bf04e861928c6a7e50868c6ca4a6"; 32const PR_TEST_COMMIT_HASH: &str = "5d40fb1555a0c28bf4d650515a73aaa54d4d9bfb";
33 33
34use crate::{ 34use 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,
@@ -1355,11 +1355,10 @@ impl PushAuthorizationTests {
1355 return TestResult::new(test_name, "GRASP-01:git-http:40", desc).fail(&e); 1355 return TestResult::new(test_name, "GRASP-01:git-http:40", desc).fail(&e);
1356 } 1356 }
1357 1357
1358 // TODO - uncomment this when purgatory feature added
1359 // Check event is not yet served by relay (still in purgatory) 1358 // Check event is not yet served by relay (still in purgatory)
1360 match client.is_event_on_relay(pr_event.id).await { 1359 match client.is_event_on_relay(pr_event.id).await {
1361 Ok(on_relay) => { 1360 Ok(on_relay) => {
1362 if !on_relay { 1361 if on_relay {
1363 return TestResult::new(test_name, "GRASP-01:git-http:40", desc) 1362 return TestResult::new(test_name, "GRASP-01:git-http:40", desc)
1364 .fail("PR event not in purgatory before correct commit pushed to refs/nostr/<event-id> (the relay serve the PR event)"); 1363 .fail("PR event not in purgatory before correct commit pushed to refs/nostr/<event-id> (the relay serve the PR event)");
1365 } 1364 }