diff options
| author | DanConwayDev <DanConwayDev@protonmail.com> | 2024-03-22 15:51:40 +0000 |
|---|---|---|
| committer | DanConwayDev <DanConwayDev@protonmail.com> | 2024-03-25 11:46:23 +0000 |
| commit | 49bc478fffc63a3cad0be194c6c45a868e432691 (patch) | |
| tree | 69438e9123858aee17828d9e718058797e3583e6 /tests | |
| parent | 9a450f2ce740da08843a541d230c43194b934f5f (diff) | |
update tag generation
to reflect changes in rust-nostr
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/list.rs | 12 | ||||
| -rw-r--r-- | tests/pull.rs | 10 |
2 files changed, 17 insertions, 5 deletions
diff --git a/tests/list.rs b/tests/list.rs index 4f55645..ee5e1dc 100644 --- a/tests/list.rs +++ b/tests/list.rs | |||
| @@ -190,7 +190,7 @@ mod cannot_find_repo_event { | |||
| 190 | input.succeeds_with( | 190 | input.succeeds_with( |
| 191 | &Coordinate { | 191 | &Coordinate { |
| 192 | kind: nostr::Kind::Custom(REPOSITORY_KIND), | 192 | kind: nostr::Kind::Custom(REPOSITORY_KIND), |
| 193 | pubkey: TEST_KEY_1_KEYS.public_key(), | 193 | public_key: TEST_KEY_1_KEYS.public_key(), |
| 194 | identifier: repo_event.identifier().unwrap().to_string(), | 194 | identifier: repo_event.identifier().unwrap().to_string(), |
| 195 | relays: vec!["ws://localhost:8056".to_string()], | 195 | relays: vec!["ws://localhost:8056".to_string()], |
| 196 | } | 196 | } |
| @@ -1621,7 +1621,10 @@ mod when_main_branch_is_uptodate { | |||
| 1621 | vec![ | 1621 | vec![ |
| 1622 | nostr::Filter::default() | 1622 | nostr::Filter::default() |
| 1623 | .kind(nostr::Kind::Custom(PATCH_KIND)) | 1623 | .kind(nostr::Kind::Custom(PATCH_KIND)) |
| 1624 | .custom_tag(nostr::Alphabet::T, vec!["root"]), | 1624 | .custom_tag( |
| 1625 | nostr::SingleLetterTag::lowercase(nostr::Alphabet::T), | ||
| 1626 | vec!["root"], | ||
| 1627 | ), | ||
| 1625 | ], | 1628 | ], |
| 1626 | Some(Duration::from_millis(500)), | 1629 | Some(Duration::from_millis(500)), |
| 1627 | )?; | 1630 | )?; |
| @@ -1748,7 +1751,10 @@ mod when_main_branch_is_uptodate { | |||
| 1748 | vec![ | 1751 | vec![ |
| 1749 | nostr::Filter::default() | 1752 | nostr::Filter::default() |
| 1750 | .kind(nostr::Kind::Custom(PATCH_KIND)) | 1753 | .kind(nostr::Kind::Custom(PATCH_KIND)) |
| 1751 | .custom_tag(nostr::Alphabet::T, vec!["root"]), | 1754 | .custom_tag( |
| 1755 | nostr::SingleLetterTag::lowercase(nostr::Alphabet::T), | ||
| 1756 | vec!["root"], | ||
| 1757 | ), | ||
| 1752 | ], | 1758 | ], |
| 1753 | Some(Duration::from_millis(500)), | 1759 | Some(Duration::from_millis(500)), |
| 1754 | )?; | 1760 | )?; |
diff --git a/tests/pull.rs b/tests/pull.rs index 50dddbf..853f518 100644 --- a/tests/pull.rs +++ b/tests/pull.rs | |||
| @@ -746,7 +746,10 @@ mod when_branch_is_checked_out { | |||
| 746 | vec![ | 746 | vec![ |
| 747 | nostr::Filter::default() | 747 | nostr::Filter::default() |
| 748 | .kind(nostr::Kind::Custom(PATCH_KIND)) | 748 | .kind(nostr::Kind::Custom(PATCH_KIND)) |
| 749 | .custom_tag(nostr::Alphabet::T, vec!["root"]), | 749 | .custom_tag( |
| 750 | nostr::SingleLetterTag::lowercase(nostr::Alphabet::T), | ||
| 751 | vec!["root"], | ||
| 752 | ), | ||
| 750 | ], | 753 | ], |
| 751 | Some(Duration::from_millis(500)), | 754 | Some(Duration::from_millis(500)), |
| 752 | )?; | 755 | )?; |
| @@ -843,7 +846,10 @@ mod when_branch_is_checked_out { | |||
| 843 | vec![ | 846 | vec![ |
| 844 | nostr::Filter::default() | 847 | nostr::Filter::default() |
| 845 | .kind(nostr::Kind::Custom(PATCH_KIND)) | 848 | .kind(nostr::Kind::Custom(PATCH_KIND)) |
| 846 | .custom_tag(nostr::Alphabet::T, vec!["root"]), | 849 | .custom_tag( |
| 850 | nostr::SingleLetterTag::lowercase(nostr::Alphabet::T), | ||
| 851 | vec!["root"], | ||
| 852 | ), | ||
| 847 | ], | 853 | ], |
| 848 | Some(Duration::from_millis(500)), | 854 | Some(Duration::from_millis(500)), |
| 849 | )?; | 855 | )?; |