upleb.uk

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

summaryrefslogtreecommitdiff
path: root/test_utils/src/git.rs
diff options
context:
space:
mode:
authorDanConwayDev <DanConwayDev@protonmail.com>2024-11-27 17:08:25 +0000
committerDanConwayDev <DanConwayDev@protonmail.com>2024-11-27 17:08:25 +0000
commit83448a99aaf18c7a045a081c5de0c22bc4a83de1 (patch)
tree28076a33b40e63937d79a8fe8d54b58d42db092c /test_utils/src/git.rs
parent5478aa74cc26452809e499a461067ca9744cb7ce (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 'test_utils/src/git.rs')
-rw-r--r--test_utils/src/git.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/test_utils/src/git.rs b/test_utils/src/git.rs
index 2562799..474fc59 100644
--- a/test_utils/src/git.rs
+++ b/test_utils/src/git.rs
@@ -10,7 +10,7 @@ use std::{
10use anyhow::{Context, Result}; 10use anyhow::{Context, Result};
11use git2::{Branch, Oid, RepositoryInitOptions, Signature, Time}; 11use git2::{Branch, Oid, RepositoryInitOptions, Signature, Time};
12use nostr::nips::nip01::Coordinate; 12use nostr::nips::nip01::Coordinate;
13use nostr_sdk::{Kind, ToBech32}; 13use nostr_sdk::{Kind, RelayUrl, ToBech32};
14 14
15use crate::generate_repo_ref_event; 15use crate::generate_repo_ref_event;
16 16
@@ -28,8 +28,8 @@ impl Default for GitTestRepo {
28 public_key: repo_event.pubkey, 28 public_key: repo_event.pubkey,
29 identifier: repo_event.tags.identifier().unwrap().to_string(), 29 identifier: repo_event.tags.identifier().unwrap().to_string(),
30 relays: vec![ 30 relays: vec![
31 "ws://localhost:8055".to_string(), 31 RelayUrl::parse("ws://localhost:8055").unwrap(),
32 "ws://localhost:8056".to_string(), 32 RelayUrl::parse("ws://localhost:8056").unwrap(),
33 ], 33 ],
34 }; 34 };
35 35