diff options
| author | DanConwayDev <DanConwayDev@protonmail.com> | 2025-04-01 14:31:34 +0100 |
|---|---|---|
| committer | DanConwayDev <DanConwayDev@protonmail.com> | 2025-04-01 14:35:50 +0100 |
| commit | 948fe972eb2bddf187b79f2673a091b6331cfd90 (patch) | |
| tree | ec1c538d28108b104b5a00afd673631538f9aa00 /tests/git_remote_nostr | |
| parent | 70966d571fce16f707725c6b0af0fd585bfce607 (diff) | |
chore: bump rust-nostr v0.37 ~> v0.40
and fix all of the breaking changes
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(), |