diff options
| author | DanConwayDev <DanConwayDev@protonmail.com> | 2024-10-28 15:41:14 +0000 |
|---|---|---|
| committer | DanConwayDev <DanConwayDev@protonmail.com> | 2024-10-28 15:41:14 +0000 |
| commit | ae87aedae9696f4c855ac3dc47e61faec9d07c15 (patch) | |
| tree | 0309be588a4e3d3a510e7510300629cb2ec3a68a /tests | |
| parent | 5979e13cdc65ea78894dbcab3acde11b246889a7 (diff) | |
chore: bump rust-nostr to patch near v0.36.0
bump all rust-nostr packages
refactoring code based on breaking changes
upgrading to patched version to address signer issue:
nostr:nevent1qvzqqqqqqypzq6xcz9jerqgqkldy8lpg7lglcyj4g3nwzy2cs6u70wejdaj7csnjqy88wumn8ghj7mn0wvhxcmmv9uqzpsw5ph8le2n2kh6uchftawt74hddazk9tp7wjmz967y2l0uva5rc7hsstq
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/git_remote_nostr/main.rs | 2 | ||||
| -rw-r--r-- | tests/git_remote_nostr/push.rs | 4 | ||||
| -rw-r--r-- | tests/ngit_list.rs | 2 | ||||
| -rw-r--r-- | tests/ngit_send.rs | 8 |
4 files changed, 8 insertions, 8 deletions
diff --git a/tests/git_remote_nostr/main.rs b/tests/git_remote_nostr/main.rs index 189d82d..f749c7f 100644 --- a/tests/git_remote_nostr/main.rs +++ b/tests/git_remote_nostr/main.rs | |||
| @@ -21,7 +21,7 @@ fn get_nostr_remote_url() -> Result<String> { | |||
| 21 | let naddr = Coordinate { | 21 | let naddr = Coordinate { |
| 22 | kind: Kind::GitRepoAnnouncement, | 22 | kind: Kind::GitRepoAnnouncement, |
| 23 | public_key: repo_event.pubkey, | 23 | public_key: repo_event.pubkey, |
| 24 | identifier: repo_event.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 | "ws://localhost:8055".to_string(), |
| 27 | "ws://localhost:8056".to_string(), | 27 | "ws://localhost:8056".to_string(), |
diff --git a/tests/git_remote_nostr/push.rs b/tests/git_remote_nostr/push.rs index e0a4e93..b93475c 100644 --- a/tests/git_remote_nostr/push.rs +++ b/tests/git_remote_nostr/push.rs | |||
| @@ -302,8 +302,8 @@ mod two_branches_in_batch_one_added_one_updated { | |||
| 302 | .context("state event not created")?; | 302 | .context("state event not created")?; |
| 303 | 303 | ||
| 304 | assert_eq!( | 304 | assert_eq!( |
| 305 | state_event.identifier(), | 305 | state_event.tags.identifier(), |
| 306 | generate_repo_ref_event().identifier(), | 306 | generate_repo_ref_event().tags.identifier(), |
| 307 | ); | 307 | ); |
| 308 | // println!("{:#?}", state_event); | 308 | // println!("{:#?}", state_event); |
| 309 | assert_eq!( | 309 | assert_eq!( |
diff --git a/tests/ngit_list.rs b/tests/ngit_list.rs index 26cf717..6382451 100644 --- a/tests/ngit_list.rs +++ b/tests/ngit_list.rs | |||
| @@ -90,7 +90,7 @@ mod cannot_find_repo_event { | |||
| 90 | &Coordinate { | 90 | &Coordinate { |
| 91 | kind: nostr::Kind::GitRepoAnnouncement, | 91 | kind: nostr::Kind::GitRepoAnnouncement, |
| 92 | public_key: TEST_KEY_1_KEYS.public_key(), | 92 | public_key: TEST_KEY_1_KEYS.public_key(), |
| 93 | identifier: repo_event.identifier().unwrap().to_string(), | 93 | identifier: repo_event.tags.identifier().unwrap().to_string(), |
| 94 | relays: vec!["ws://localhost:8056".to_string()], | 94 | relays: vec!["ws://localhost:8056".to_string()], |
| 95 | } | 95 | } |
| 96 | .to_bech32()?, | 96 | .to_bech32()?, |
diff --git a/tests/ngit_send.rs b/tests/ngit_send.rs index 0fe7a86..620146e 100644 --- a/tests/ngit_send.rs +++ b/tests/ngit_send.rs | |||
| @@ -400,7 +400,7 @@ mod when_cover_letter_details_specified_with_range_of_head_2_sends_cover_letter_ | |||
| 400 | && t.as_slice()[1].eq(&format!( | 400 | && t.as_slice()[1].eq(&format!( |
| 401 | "{}:{TEST_KEY_1_PUBKEY_HEX}:{}", | 401 | "{}:{TEST_KEY_1_PUBKEY_HEX}:{}", |
| 402 | Kind::GitRepoAnnouncement, | 402 | Kind::GitRepoAnnouncement, |
| 403 | generate_repo_ref_event().identifier().unwrap() | 403 | generate_repo_ref_event().tags.identifier().unwrap() |
| 404 | ))) | 404 | ))) |
| 405 | ); | 405 | ); |
| 406 | assert!( | 406 | assert!( |
| @@ -411,7 +411,7 @@ mod when_cover_letter_details_specified_with_range_of_head_2_sends_cover_letter_ | |||
| 411 | && t.as_slice()[1].eq(&format!( | 411 | && t.as_slice()[1].eq(&format!( |
| 412 | "{}:{TEST_KEY_2_PUBKEY_HEX}:{}", | 412 | "{}:{TEST_KEY_2_PUBKEY_HEX}:{}", |
| 413 | Kind::GitRepoAnnouncement, | 413 | Kind::GitRepoAnnouncement, |
| 414 | generate_repo_ref_event().identifier().unwrap() | 414 | generate_repo_ref_event().tags.identifier().unwrap() |
| 415 | ))) | 415 | ))) |
| 416 | ); | 416 | ); |
| 417 | } | 417 | } |
| @@ -606,7 +606,7 @@ mod when_cover_letter_details_specified_with_range_of_head_2_sends_cover_letter_ | |||
| 606 | && t.as_slice()[1].eq(&format!( | 606 | && t.as_slice()[1].eq(&format!( |
| 607 | "{}:{TEST_KEY_1_PUBKEY_HEX}:{}", | 607 | "{}:{TEST_KEY_1_PUBKEY_HEX}:{}", |
| 608 | Kind::GitRepoAnnouncement, | 608 | Kind::GitRepoAnnouncement, |
| 609 | generate_repo_ref_event().identifier().unwrap() | 609 | generate_repo_ref_event().tags.identifier().unwrap() |
| 610 | )) | 610 | )) |
| 611 | })); | 611 | })); |
| 612 | assert!(prep().await?.tags.iter().any(|t| { | 612 | assert!(prep().await?.tags.iter().any(|t| { |
| @@ -614,7 +614,7 @@ mod when_cover_letter_details_specified_with_range_of_head_2_sends_cover_letter_ | |||
| 614 | && t.as_slice()[1].eq(&format!( | 614 | && t.as_slice()[1].eq(&format!( |
| 615 | "{}:{TEST_KEY_2_PUBKEY_HEX}:{}", | 615 | "{}:{TEST_KEY_2_PUBKEY_HEX}:{}", |
| 616 | Kind::GitRepoAnnouncement, | 616 | Kind::GitRepoAnnouncement, |
| 617 | generate_repo_ref_event().identifier().unwrap() | 617 | generate_repo_ref_event().tags.identifier().unwrap() |
| 618 | )) | 618 | )) |
| 619 | })); | 619 | })); |
| 620 | Ok(()) | 620 | Ok(()) |