Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions crates/buzz-test-client/tests/e2e_relay.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3833,6 +3833,14 @@ async fn test_nip29_announce_channel_wire() {
assert!(msg.contains("relay owner or admin"), "{msg}");
let relay_owner = Keys::generate();
seed_relay_owner(&relay_owner).await;
// Join first so the relay owner's later admissions have nothing to
// auto-join: otherwise an admission while auto_join is on joins it here,
// and that join's kind:39000 republish can race the 9002 below and
// re-advertise the tag.
assert_eq!(
join_ws(&url, &channel_id, &relay_owner).await,
(true, String::new())
);
assert_eq!(
set_metadata_ws(&url, &channel_id, &relay_owner, "auto_join", "true").await,
(true, String::new())
Expand Down
Loading