From 85eb1ccadbce711956bd573e73fe2c4dfb0a5855 Mon Sep 17 00:00:00 2001 From: DanConwayDev Date: Thu, 1 Aug 2024 14:56:41 +0100 Subject: test(remote): fix url `from_naddr` as rust-nostr doesn't add trailing slash to relays --- src/git_remote_helper.rs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'src/git_remote_helper.rs') diff --git a/src/git_remote_helper.rs b/src/git_remote_helper.rs index 4c6b9fc..6dc00cb 100644 --- a/src/git_remote_helper.rs +++ b/src/git_remote_helper.rs @@ -592,7 +592,15 @@ mod tests { nostr_git_url_to_repo_coordinates( "nostr://naddr1qqzxuemfwsqs6amnwvaz7tmwdaejumr0dspzpgqgmmc409hm4xsdd74sf68a2uyf9pwel4g9mfdg8l5244t6x4jdqvzqqqrhnym0k2qj" )?, - HashSet::from([get_model_coordinate(true)]), + HashSet::from([Coordinate { + identifier: "ngit".to_string(), + public_key: PublicKey::parse( + "npub15qydau2hjma6ngxkl2cyar74wzyjshvl65za5k5rl69264ar2exs5cyejr", + ) + .unwrap(), + kind: nostr_sdk::Kind::GitRepoAnnouncement, + relays: vec!["wss://nos.lol".to_string()], // wont add the slash + }]), ); Ok(()) } -- cgit v1.2.3