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-11-05 20:40:38 +0000
committerDanConwayDev <DanConwayDev@protonmail.com>2025-11-05 20:40:38 +0000
commit4f88b6d83d490096a87ce08a66ef9edf619ad5a2 (patch)
treea8f87f551ee0711af3a75fcf88128596906aab45 /grasp-audit/src/specs
parent396da002fefeeb4549e11ff51abf824e91a6ed88 (diff)
fixed incorrectly labelled async function
Diffstat (limited to 'grasp-audit/src/specs')
-rw-r--r--grasp-audit/src/specs/grasp01/event_acceptance_policy.rs18
1 files changed, 9 insertions, 9 deletions
diff --git a/grasp-audit/src/specs/grasp01/event_acceptance_policy.rs b/grasp-audit/src/specs/grasp01/event_acceptance_policy.rs
index 9294b50..8a9ebcb 100644
--- a/grasp-audit/src/specs/grasp01/event_acceptance_policy.rs
+++ b/grasp-audit/src/specs/grasp01/event_acceptance_policy.rs
@@ -452,7 +452,7 @@ impl EventAcceptancePolicyTests {
452 452
453 /// Create an issue (kind 1621) that references a repository 453 /// Create an issue (kind 1621) that references a repository
454 /// Uses AuditClient::create_issue helper method 454 /// Uses AuditClient::create_issue helper method
455 async fn create_issue_for_repo( 455 fn create_issue_for_repo(
456 client: &AuditClient, 456 client: &AuditClient,
457 repo_event: &Event, 457 repo_event: &Event,
458 issue_title: &str, 458 issue_title: &str,
@@ -463,7 +463,7 @@ impl EventAcceptancePolicyTests {
463 463
464 /// Create a NIP-22 comment (kind 1111) for an event 464 /// Create a NIP-22 comment (kind 1111) for an event
465 /// Uses AuditClient::create_comment helper method 465 /// Uses AuditClient::create_comment helper method
466 async fn create_comment_for_event( 466 fn create_comment_for_event(
467 client: &AuditClient, 467 client: &AuditClient,
468 event: &Event, 468 event: &Event,
469 content: &str, 469 content: &str,
@@ -537,7 +537,7 @@ impl EventAcceptancePolicyTests {
537 Self::send_and_verify_accepted(client, repo.clone(), "repository announcement").await?; 537 Self::send_and_verify_accepted(client, repo.clone(), "repository announcement").await?;
538 538
539 // 2. Create issue that references the repo (uses create_issue_for_repo helper) 539 // 2. Create issue that references the repo (uses create_issue_for_repo helper)
540 let issue = Self::create_issue_for_repo(client, &repo, "Test Issue 1").await?; 540 let issue = Self::create_issue_for_repo(client, &repo, "Test Issue 1")?;
541 541
542 // 3. Send issue and verify it's accepted 542 // 3. Send issue and verify it's accepted
543 Self::send_and_verify_accepted(client, issue, "issue referencing repo via 'a' tag").await?; 543 Self::send_and_verify_accepted(client, issue, "issue referencing repo via 'a' tag").await?;
@@ -639,7 +639,7 @@ impl EventAcceptancePolicyTests {
639 Self::send_and_verify_accepted(client, repo_a.clone(), "repo A").await?; 639 Self::send_and_verify_accepted(client, repo_a.clone(), "repo A").await?;
640 640
641 // 2. Create and send Issue A (references repo A, so it's accepted) 641 // 2. Create and send Issue A (references repo A, so it's accepted)
642 let issue_a = Self::create_issue_for_repo(client, &repo_a, "Issue A").await?; 642 let issue_a = Self::create_issue_for_repo(client, &repo_a, "Issue A")?;
643 Self::send_and_verify_accepted(client, issue_a.clone(), "issue A").await?; 643 Self::send_and_verify_accepted(client, issue_a.clone(), "issue A").await?;
644 644
645 // 3. Create Repo B but DON'T send it (unaccepted) - just for creating Issue B 645 // 3. Create Repo B but DON'T send it (unaccepted) - just for creating Issue B
@@ -679,11 +679,11 @@ impl EventAcceptancePolicyTests {
679 Self::send_and_verify_accepted(client, repo.clone(), "repo").await?; 679 Self::send_and_verify_accepted(client, repo.clone(), "repo").await?;
680 680
681 // 2. Create and send issue (references repo, so it's accepted) 681 // 2. Create and send issue (references repo, so it's accepted)
682 let issue = Self::create_issue_for_repo(client, &repo, "Issue for comment").await?; 682 let issue = Self::create_issue_for_repo(client, &repo, "Issue for comment")?;
683 Self::send_and_verify_accepted(client, issue.clone(), "issue").await?; 683 Self::send_and_verify_accepted(client, issue.clone(), "issue").await?;
684 684
685 // 3. Create comment using the helper (which adds NIP-22 tags including 'E') 685 // 3. Create comment using the helper (which adds NIP-22 tags including 'E')
686 let comment = Self::create_comment_for_event(client, &issue, "Comment content").await?; 686 let comment = Self::create_comment_for_event(client, &issue, "Comment content")?;
687 687
688 // 4. Send comment and verify it's accepted (via E tag to accepted issue) 688 // 4. Send comment and verify it's accepted (via E tag to accepted issue)
689 Self::send_and_verify_accepted(client, comment, "comment with E tag to accepted issue").await?; 689 Self::send_and_verify_accepted(client, comment, "comment with E tag to accepted issue").await?;
@@ -798,11 +798,11 @@ impl EventAcceptancePolicyTests {
798 Self::send_and_verify_accepted(client, repo.clone(), "repo").await?; 798 Self::send_and_verify_accepted(client, repo.clone(), "repo").await?;
799 799
800 // 2. Create and send issue (references repo, so it's accepted) 800 // 2. Create and send issue (references repo, so it's accepted)
801 let issue = Self::create_issue_for_repo(client, &repo, "Issue for comments").await?; 801 let issue = Self::create_issue_for_repo(client, &repo, "Issue for comments")?;
802 Self::send_and_verify_accepted(client, issue.clone(), "issue").await?; 802 Self::send_and_verify_accepted(client, issue.clone(), "issue").await?;
803 803
804 // 3. Create Comment A locally but DON'T send it yet 804 // 3. Create Comment A locally but DON'T send it yet
805 let comment_a = Self::create_comment_for_event(client, &issue, "Comment A").await?; 805 let comment_a = Self::create_comment_for_event(client, &issue, "Comment A")?;
806 806
807 // 4. Create and send Comment B that quotes Comment A (which hasn't been sent) 807 // 4. Create and send Comment B that quotes Comment A (which hasn't been sent)
808 let comment_b_tags = vec![ 808 let comment_b_tags = vec![
@@ -891,7 +891,7 @@ impl EventAcceptancePolicyTests {
891 let unaccepted_repo = Self::create_test_repo(client, "unaccepted-repo-1").await?; 891 let unaccepted_repo = Self::create_test_repo(client, "unaccepted-repo-1").await?;
892 892
893 // 2. Create issue that references the unaccepted repo 893 // 2. Create issue that references the unaccepted repo
894 let orphan_issue = Self::create_issue_for_repo(client, &unaccepted_repo, "Orphan Issue").await?; 894 let orphan_issue = Self::create_issue_for_repo(client, &unaccepted_repo, "Orphan Issue")?;
895 895
896 // 3. Send issue and verify it's REJECTED 896 // 3. Send issue and verify it's REJECTED
897 Self::send_and_verify_rejected(client, orphan_issue, "issue referencing unaccepted repo").await?; 897 Self::send_and_verify_rejected(client, orphan_issue, "issue referencing unaccepted repo").await?;