upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/test_utils/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'test_utils/src/lib.rs')
-rw-r--r--test_utils/src/lib.rs7
1 files changed, 2 insertions, 5 deletions
diff --git a/test_utils/src/lib.rs b/test_utils/src/lib.rs
index 5125d20..bccfaf5 100644
--- a/test_utils/src/lib.rs
+++ b/test_utils/src/lib.rs
@@ -21,9 +21,6 @@ use tokio::runtime::Handle;
21pub mod git; 21pub mod git;
22pub mod relay; 22pub mod relay;
23 23
24pub static PATCH_KIND: u16 = 1617;
25pub static REPOSITORY_KIND: u16 = 30617;
26
27pub static TEST_KEY_1_NSEC: &str = 24pub static TEST_KEY_1_NSEC: &str =
28 "nsec1ppsg5sm2aexq06juxmu9evtutr6jkwkhp98exxxvwamhru9lyx9s3rwseq"; 25 "nsec1ppsg5sm2aexq06juxmu9evtutr6jkwkhp98exxxvwamhru9lyx9s3rwseq";
29pub static TEST_KEY_1_SK_HEX: &str = 26pub static TEST_KEY_1_SK_HEX: &str =
@@ -158,7 +155,7 @@ pub fn generate_repo_ref_event() -> nostr::Event {
158 // author and committer from global git config 155 // author and committer from global git config
159 let root_commit = "9ee507fc4357d7ee16a5d8901bedcd103f23c17d"; 156 let root_commit = "9ee507fc4357d7ee16a5d8901bedcd103f23c17d";
160 nostr::event::EventBuilder::new( 157 nostr::event::EventBuilder::new(
161 nostr::Kind::Custom(REPOSITORY_KIND), 158 nostr::Kind::GitRepoAnnouncement,
162 "", 159 "",
163 [ 160 [
164 Tag::identifier( 161 Tag::identifier(
@@ -1244,7 +1241,7 @@ fn get_first_proposal_event_id() -> Result<nostr::EventId> {
1244 let proposals = Handle::current().block_on(client.get_events_of( 1241 let proposals = Handle::current().block_on(client.get_events_of(
1245 vec![ 1242 vec![
1246 nostr::Filter::default() 1243 nostr::Filter::default()
1247 .kind(nostr::Kind::Custom(PATCH_KIND)) 1244 .kind(nostr::Kind::GitPatch)
1248 .custom_tag( 1245 .custom_tag(
1249 nostr::SingleLetterTag::lowercase(nostr::Alphabet::T), 1246 nostr::SingleLetterTag::lowercase(nostr::Alphabet::T),
1250 vec!["root"], 1247 vec!["root"],