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-22 21:02:03 +0000
committerDanConwayDev <DanConwayDev@protonmail.com>2025-12-22 21:02:03 +0000
commit1df90c609399c675e629b97294aee81a0b1e66dd (patch)
tree8482cdd0ea87cc0df5a86672bf99399aa0aa1a3d /grasp-audit/src/specs
parent5d3d96c7f0397a079384b7291ff21df76029b126 (diff)
chore: bump rust-nostr to latest master
so we can more easily support grasp purgatory feature
Diffstat (limited to 'grasp-audit/src/specs')
-rw-r--r--grasp-audit/src/specs/grasp01/event_acceptance_policy.rs4
-rw-r--r--grasp-audit/src/specs/grasp01/nip01_smoke.rs4
-rw-r--r--grasp-audit/src/specs/grasp01/push_authorization.rs2
3 files changed, 5 insertions, 5 deletions
diff --git a/grasp-audit/src/specs/grasp01/event_acceptance_policy.rs b/grasp-audit/src/specs/grasp01/event_acceptance_policy.rs
index c34fe66..00a48fd 100644
--- a/grasp-audit/src/specs/grasp01/event_acceptance_policy.rs
+++ b/grasp-audit/src/specs/grasp01/event_acceptance_policy.rs
@@ -271,7 +271,7 @@ impl EventAcceptancePolicyTests {
271 .to_string(); 271 .to_string();
272 272
273 // Create unique repository identifier 273 // Create unique repository identifier
274 let timestamp = Timestamp::now().as_u64(); 274 let timestamp = Timestamp::now().as_secs();
275 let repo_id = format!("test-repo-no-clone-{}", timestamp); 275 let repo_id = format!("test-repo-no-clone-{}", timestamp);
276 276
277 // Create repo announcement WITHOUT service in clone tag 277 // Create repo announcement WITHOUT service in clone tag
@@ -352,7 +352,7 @@ impl EventAcceptancePolicyTests {
352 .replace("wss://", "https://"); 352 .replace("wss://", "https://");
353 353
354 // Create unique repository identifier 354 // Create unique repository identifier
355 let timestamp = Timestamp::now().as_u64(); 355 let timestamp = Timestamp::now().as_secs();
356 let repo_id = format!("test-repo-no-relays-{}", timestamp); 356 let repo_id = format!("test-repo-no-relays-{}", timestamp);
357 357
358 // Create repo announcement WITHOUT service in relays tag 358 // Create repo announcement WITHOUT service in relays tag
diff --git a/grasp-audit/src/specs/grasp01/nip01_smoke.rs b/grasp-audit/src/specs/grasp01/nip01_smoke.rs
index 4dbcd3d..bd45ea4 100644
--- a/grasp-audit/src/specs/grasp01/nip01_smoke.rs
+++ b/grasp-audit/src/specs/grasp01/nip01_smoke.rs
@@ -216,7 +216,7 @@ impl Nip01SmokeTests {
216 let invalid_event_json = serde_json::json!({ 216 let invalid_event_json = serde_json::json!({
217 "id": event.id.to_hex(), 217 "id": event.id.to_hex(),
218 "pubkey": event.pubkey.to_hex(), 218 "pubkey": event.pubkey.to_hex(),
219 "created_at": event.created_at.as_u64(), 219 "created_at": event.created_at.as_secs(),
220 "kind": event.kind.as_u16(), 220 "kind": event.kind.as_u16(),
221 "tags": event.tags, 221 "tags": event.tags,
222 "content": event.content, 222 "content": event.content,
@@ -261,7 +261,7 @@ impl Nip01SmokeTests {
261 let invalid_event_json = serde_json::json!({ 261 let invalid_event_json = serde_json::json!({
262 "id": EventId::all_zeros().to_hex(), // Wrong ID! 262 "id": EventId::all_zeros().to_hex(), // Wrong ID!
263 "pubkey": event.pubkey.to_hex(), 263 "pubkey": event.pubkey.to_hex(),
264 "created_at": event.created_at.as_u64(), 264 "created_at": event.created_at.as_secs(),
265 "kind": event.kind.as_u16(), 265 "kind": event.kind.as_u16(),
266 "tags": event.tags, 266 "tags": event.tags,
267 "content": event.content, 267 "content": event.content,
diff --git a/grasp-audit/src/specs/grasp01/push_authorization.rs b/grasp-audit/src/specs/grasp01/push_authorization.rs
index ec08032..25738d1 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 = "5d40fb1555a0c28bf4d650515a73aaa54d4d9bfb"; 32const PR_TEST_COMMIT_HASH: &str = "8935183ff722bf04e861928c6a7e50868c6ca4a6";
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,