diff options
Diffstat (limited to 'test_utils/src/git.rs')
| -rw-r--r-- | test_utils/src/git.rs | 12 |
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 | ||
| 10 | use anyhow::{Context, Result}; | 10 | use anyhow::{Context, Result}; |
| 11 | use git2::{Branch, Oid, RepositoryInitOptions, Signature, Time}; | 11 | use git2::{Branch, Oid, RepositoryInitOptions, Signature, Time}; |
| 12 | use nostr::nips::nip01::Coordinate; | 12 | use nostr::nips::{nip01::Coordinate, nip19::Nip19Coordinate}; |
| 13 | use nostr_sdk::{Kind, RelayUrl, ToBech32}; | 13 | use nostr_sdk::{Kind, RelayUrl, ToBech32}; |
| 14 | 14 | ||
| 15 | use crate::generate_repo_ref_event; | 15 | use crate::generate_repo_ref_event; |
| @@ -23,10 +23,12 @@ pub struct GitTestRepo { | |||
| 23 | impl Default for GitTestRepo { | 23 | impl 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(), |