diff options
Diffstat (limited to 'tests/git_remote_nostr')
| -rw-r--r-- | tests/git_remote_nostr/main.rs | 12 |
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}; | |||
| 3 | use anyhow::{Context, Result}; | 3 | use anyhow::{Context, Result}; |
| 4 | use futures::join; | 4 | use futures::join; |
| 5 | use git2::Oid; | 5 | use git2::Oid; |
| 6 | use nostr::nips::nip01::Coordinate; | 6 | use nostr::nips::{nip01::Coordinate, nip19::Nip19Coordinate}; |
| 7 | use nostr_sdk::{Event, JsonUtil, Kind, RelayUrl, ToBech32, secp256k1::rand}; | 7 | use nostr_sdk::{Event, JsonUtil, Kind, RelayUrl, ToBech32, secp256k1::rand}; |
| 8 | use relay::Relay; | 8 | use relay::Relay; |
| 9 | use serial_test::serial; | 9 | use serial_test::serial; |
| @@ -18,10 +18,12 @@ static STATE_KIND: nostr::Kind = Kind::Custom(30618); | |||
| 18 | 18 | ||
| 19 | fn get_nostr_remote_url() -> Result<String> { | 19 | fn 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(), |