diff options
Diffstat (limited to 'grasp-audit/src')
| -rw-r--r-- | grasp-audit/src/specs/grasp01/push_authorization.rs | 5 |
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)] |
| 32 | const PR_TEST_COMMIT_HASH: &str = "8935183ff722bf04e861928c6a7e50868c6ca4a6"; | 32 | const PR_TEST_COMMIT_HASH: &str = "5d40fb1555a0c28bf4d650515a73aaa54d4d9bfb"; |
| 33 | 33 | ||
| 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, |
| @@ -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 | } |