diff options
| author | DanConwayDev <DanConwayDev@protonmail.com> | 2024-11-27 17:08:25 +0000 |
|---|---|---|
| committer | DanConwayDev <DanConwayDev@protonmail.com> | 2024-11-27 17:08:25 +0000 |
| commit | 83448a99aaf18c7a045a081c5de0c22bc4a83de1 (patch) | |
| tree | 28076a33b40e63937d79a8fe8d54b58d42db092c /tests | |
| parent | 5478aa74cc26452809e499a461067ca9744cb7ce (diff) | |
chore: bump rust-nosrt v0.37.0
use RelayUrl in repo_ref which I had resisted as it mutates relay
urls when printed to append a slash
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/git_remote_nostr/main.rs | 6 | ||||
| -rw-r--r-- | tests/ngit_list.rs | 3 |
2 files changed, 5 insertions, 4 deletions
diff --git a/tests/git_remote_nostr/main.rs b/tests/git_remote_nostr/main.rs index 84e66bd..5a1d416 100644 --- a/tests/git_remote_nostr/main.rs +++ b/tests/git_remote_nostr/main.rs | |||
| @@ -4,7 +4,7 @@ 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; |
| 7 | use nostr_sdk::{secp256k1::rand, Event, JsonUtil, Kind, ToBech32}; | 7 | use nostr_sdk::{secp256k1::rand, Event, JsonUtil, Kind, RelayUrl, ToBech32}; |
| 8 | use relay::Relay; | 8 | use relay::Relay; |
| 9 | use serial_test::serial; | 9 | use serial_test::serial; |
| 10 | use test_utils::{git::GitTestRepo, *}; | 10 | use test_utils::{git::GitTestRepo, *}; |
| @@ -23,8 +23,8 @@ fn get_nostr_remote_url() -> Result<String> { | |||
| 23 | public_key: repo_event.pubkey, | 23 | public_key: repo_event.pubkey, |
| 24 | identifier: repo_event.tags.identifier().unwrap().to_string(), | 24 | identifier: repo_event.tags.identifier().unwrap().to_string(), |
| 25 | relays: vec![ | 25 | relays: vec![ |
| 26 | "ws://localhost:8055".to_string(), | 26 | RelayUrl::parse("ws://localhost:8055").unwrap(), |
| 27 | "ws://localhost:8056".to_string(), | 27 | RelayUrl::parse("ws://localhost:8056").unwrap(), |
| 28 | ], | 28 | ], |
| 29 | } | 29 | } |
| 30 | .to_bech32()?; | 30 | .to_bech32()?; |
diff --git a/tests/ngit_list.rs b/tests/ngit_list.rs index a6b1374..ab6ba22 100644 --- a/tests/ngit_list.rs +++ b/tests/ngit_list.rs | |||
| @@ -50,6 +50,7 @@ mod cannot_find_repo_event { | |||
| 50 | use super::*; | 50 | use super::*; |
| 51 | mod cli_prompts { | 51 | mod cli_prompts { |
| 52 | use nostr::{nips::nip01::Coordinate, ToBech32}; | 52 | use nostr::{nips::nip01::Coordinate, ToBech32}; |
| 53 | use nostr_sdk::RelayUrl; | ||
| 53 | 54 | ||
| 54 | use super::*; | 55 | use super::*; |
| 55 | async fn run_async_repo_event_ref_needed(invalid_input: bool, naddr: bool) -> Result<()> { | 56 | async fn run_async_repo_event_ref_needed(invalid_input: bool, naddr: bool) -> Result<()> { |
| @@ -91,7 +92,7 @@ mod cannot_find_repo_event { | |||
| 91 | kind: nostr::Kind::GitRepoAnnouncement, | 92 | kind: nostr::Kind::GitRepoAnnouncement, |
| 92 | public_key: TEST_KEY_1_KEYS.public_key(), | 93 | public_key: TEST_KEY_1_KEYS.public_key(), |
| 93 | identifier: repo_event.tags.identifier().unwrap().to_string(), | 94 | identifier: repo_event.tags.identifier().unwrap().to_string(), |
| 94 | relays: vec!["ws://localhost:8056".to_string()], | 95 | relays: vec![RelayUrl::parse("ws://localhost:8056").unwrap()], |
| 95 | } | 96 | } |
| 96 | .to_bech32()?, | 97 | .to_bech32()?, |
| 97 | )?; | 98 | )?; |