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-24 08:02:12 +0000
committerDanConwayDev <DanConwayDev@protonmail.com>2025-12-24 11:54:18 +0000
commit70d0197e85ae4ef85202781f6d2dc9e76bd508b3 (patch)
tree45efb6565e81ba755acc5955e68d5b7119d1e122 /grasp-audit/src/specs
parentf8c3e3920ed2a1bdaab30be912276993449a5476 (diff)
feat(purgatory): add broken purgatory implementation
Diffstat (limited to 'grasp-audit/src/specs')
-rw-r--r--grasp-audit/src/specs/grasp01/push_authorization.rs26
1 files changed, 13 insertions, 13 deletions
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 {
1355 } 1355 }
1356 1356
1357 // TODO - uncomment this when purgatory feature added 1357 // TODO - uncomment this when purgatory feature added
1358 // // Check event is not yet served by relay (still in purgatory) 1358 // Check event is not yet served by relay (still in purgatory)
1359 // match client.is_event_on_relay(pr_event.id).await { 1359 match client.is_event_on_relay(pr_event.id).await {
1360 // Ok(on_relay) => { 1360 Ok(on_relay) => {
1361 // if !on_relay { 1361 if !on_relay {
1362 // return TestResult::new(test_name, "GRASP-01:git-http:40", desc) 1362 return TestResult::new(test_name, "GRASP-01:git-http:40", desc)
1363 // .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)");
1364 // } 1364 }
1365 // } 1365 }
1366 // Err(_) => { 1366 Err(_) => {
1367 // return TestResult::new(test_name, "GRASP-01:git-http:40", desc) 1367 return TestResult::new(test_name, "GRASP-01:git-http:40", desc)
1368 // .fail("failed to query relay"); 1368 .fail("failed to query relay");
1369 // } 1369 }
1370 // } 1370 }
1371 1371
1372 // Push correct commit (should succeed) 1372 // Push correct commit (should succeed)
1373 let push_succeeded = match push_to_pr_ref(&clone_path, &pr_event_id) { 1373 let push_succeeded = match push_to_pr_ref(&clone_path, &pr_event_id) {