diff options
| author | DanConwayDev <DanConwayDev@protonmail.com> | 2025-08-04 08:20:30 +0100 |
|---|---|---|
| committer | DanConwayDev <DanConwayDev@protonmail.com> | 2025-08-04 08:20:30 +0100 |
| commit | 6ae42e67d9da36f6c2e1356acba30a3a62112bc7 (patch) | |
| tree | 33c1ba06fc1bf79311a36693754b120ec8c67a33 /tests/git_remote_nostr | |
| parent | a7cabb96df30cd5d26f63affdb023b0706a387d1 (diff) | |
fix: `t` tag `revision-root` ~> `root-revision`
NIP-34 specifies patch revisions should have a `t` tag of
`root-revision` whereas we have been using `revision-root`.
this fixes it and and handles events created with the incorrect tag.
Diffstat (limited to 'tests/git_remote_nostr')
| -rw-r--r-- | tests/git_remote_nostr/push.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/git_remote_nostr/push.rs b/tests/git_remote_nostr/push.rs index a137da5..2afadf9 100644 --- a/tests/git_remote_nostr/push.rs +++ b/tests/git_remote_nostr/push.rs | |||
| @@ -1688,7 +1688,11 @@ async fn force_push_creates_proposal_revision() -> Result<()> { | |||
| 1688 | 1688 | ||
| 1689 | let revision_root_patch = new_events | 1689 | let revision_root_patch = new_events |
| 1690 | .iter() | 1690 | .iter() |
| 1691 | .find(|e| e.tags.iter().any(|t| t.as_slice()[1].eq("revision-root"))) | 1691 | .find(|e| { |
| 1692 | e.tags | ||
| 1693 | .iter() | ||
| 1694 | .any(|t| ["revision-root", "root-revision"].contains(&t.as_slice()[1].as_str())) | ||
| 1695 | }) | ||
| 1692 | .unwrap(); | 1696 | .unwrap(); |
| 1693 | 1697 | ||
| 1694 | assert_eq!( | 1698 | assert_eq!( |