upleb.uk

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

summaryrefslogtreecommitdiff
path: root/tests/git_remote_nostr/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/git_remote_nostr/main.rs')
-rw-r--r--tests/git_remote_nostr/main.rs12
1 files changed, 7 insertions, 5 deletions
diff --git a/tests/git_remote_nostr/main.rs b/tests/git_remote_nostr/main.rs
index 686a5df..6b51825 100644
--- a/tests/git_remote_nostr/main.rs
+++ b/tests/git_remote_nostr/main.rs
@@ -3,7 +3,7 @@ use std::{collections::HashSet, env::current_dir};
3use anyhow::{Context, Result}; 3use anyhow::{Context, Result};
4use futures::join; 4use futures::join;
5use git2::Oid; 5use git2::Oid;
6use nostr::nips::nip01::Coordinate; 6use nostr::nips::{nip01::Coordinate, nip19::Nip19Coordinate};
7use nostr_sdk::{Event, JsonUtil, Kind, RelayUrl, ToBech32, secp256k1::rand}; 7use nostr_sdk::{Event, JsonUtil, Kind, RelayUrl, ToBech32, secp256k1::rand};
8use relay::Relay; 8use relay::Relay;
9use serial_test::serial; 9use serial_test::serial;
@@ -18,10 +18,12 @@ static STATE_KIND: nostr::Kind = Kind::Custom(30618);
18 18
19fn get_nostr_remote_url() -> Result<String> { 19fn get_nostr_remote_url() -> Result<String> {
20 let repo_event = generate_repo_ref_event(); 20 let repo_event = generate_repo_ref_event();
21 let naddr = Coordinate { 21 let naddr = Nip19Coordinate {
22 kind: Kind::GitRepoAnnouncement, 22 coordinate: Coordinate {
23 public_key: repo_event.pubkey, 23 kind: Kind::GitRepoAnnouncement,
24 identifier: repo_event.tags.identifier().unwrap().to_string(), 24 public_key: repo_event.pubkey,
25 identifier: repo_event.tags.identifier().unwrap().to_string(),
26 },
25 relays: vec![ 27 relays: vec![
26 RelayUrl::parse("ws://localhost:8055").unwrap(), 28 RelayUrl::parse("ws://localhost:8055").unwrap(),
27 RelayUrl::parse("ws://localhost:8056").unwrap(), 29 RelayUrl::parse("ws://localhost:8056").unwrap(),