From 70d0197e85ae4ef85202781f6d2dc9e76bd508b3 Mon Sep 17 00:00:00 2001 From: DanConwayDev Date: Wed, 24 Dec 2025 08:02:12 +0000 Subject: feat(purgatory): add broken purgatory implementation --- .../src/specs/grasp01/push_authorization.rs | 26 +++++++++++----------- 1 file changed, 13 insertions(+), 13 deletions(-) (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 e076bee..ed69d6d 100644 --- a/grasp-audit/src/specs/grasp01/push_authorization.rs +++ b/grasp-audit/src/specs/grasp01/push_authorization.rs @@ -1355,19 +1355,19 @@ impl PushAuthorizationTests { } // TODO - uncomment this when purgatory feature added - // // Check event is not yet served by relay (still in purgatory) - // match client.is_event_on_relay(pr_event.id).await { - // Ok(on_relay) => { - // if !on_relay { - // return TestResult::new(test_name, "GRASP-01:git-http:40", desc) - // .fail("PR event not in purgatory before correct commit pushed to refs/nostr/ (the relay serve the PR event)"); - // } - // } - // Err(_) => { - // return TestResult::new(test_name, "GRASP-01:git-http:40", desc) - // .fail("failed to query relay"); - // } - // } + // Check event is not yet served by relay (still in purgatory) + match client.is_event_on_relay(pr_event.id).await { + Ok(on_relay) => { + if !on_relay { + return TestResult::new(test_name, "GRASP-01:git-http:40", desc) + .fail("PR event not in purgatory before correct commit pushed to refs/nostr/ (the relay serve the PR event)"); + } + } + Err(_) => { + return TestResult::new(test_name, "GRASP-01:git-http:40", desc) + .fail("failed to query relay"); + } + } // Push correct commit (should succeed) let push_succeeded = match push_to_pr_ref(&clone_path, &pr_event_id) { -- cgit v1.2.3