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:
Diffstat (limited to 'test_utils/src/git.rs')
-rw-r--r--test_utils/src/git.rs12
1 files changed, 7 insertions, 5 deletions
diff --git a/test_utils/src/git.rs b/test_utils/src/git.rs
index 474fc59..5942a54 100644
--- a/test_utils/src/git.rs
+++ b/test_utils/src/git.rs
@@ -9,7 +9,7 @@ use std::{
9 9
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, nip19::Nip19Coordinate};
13use nostr_sdk::{Kind, RelayUrl, ToBech32}; 13use nostr_sdk::{Kind, RelayUrl, ToBech32};
14 14
15use crate::generate_repo_ref_event; 15use crate::generate_repo_ref_event;
@@ -23,10 +23,12 @@ pub struct GitTestRepo {
23impl Default for GitTestRepo { 23impl Default for GitTestRepo {
24 fn default() -> Self { 24 fn default() -> Self {
25 let repo_event = generate_repo_ref_event(); 25 let repo_event = generate_repo_ref_event();
26 let coordinate = Coordinate { 26 let coordinate = Nip19Coordinate {
27 kind: Kind::GitRepoAnnouncement, 27 coordinate: Coordinate {
28 public_key: repo_event.pubkey, 28 kind: Kind::GitRepoAnnouncement,
29 identifier: repo_event.tags.identifier().unwrap().to_string(), 29 public_key: repo_event.pubkey,
30 identifier: repo_event.tags.identifier().unwrap().to_string(),
31 },
30 relays: vec![ 32 relays: vec![
31 RelayUrl::parse("ws://localhost:8055").unwrap(), 33 RelayUrl::parse("ws://localhost:8055").unwrap(),
32 RelayUrl::parse("ws://localhost:8056").unwrap(), 34 RelayUrl::parse("ws://localhost:8056").unwrap(),