mirror of
https://github.com/block/buzz.git
synced 2026-08-18 06:50:31 +02:00
style: rustfmt the NIP-10 top-level test assertions
cargo fmt --all --check failed Rust Lint on the assertions added in the prior commit (lines 925, 938). Whitespace/reflow only; no assertion or logic change. Co-authored-by: Will Pfleger <pfleger.will@gmail.com> Signed-off-by: Will Pfleger <pfleger.will@gmail.com>
This commit is contained in:
co-authored by
Will Pfleger
parent
47bdb3442f
commit
e22598b384
@@ -925,7 +925,11 @@ async fn test_nip10_thread_reply_not_in_top_level() {
|
||||
.send_event(broadcast_reply)
|
||||
.await
|
||||
.expect("send broadcast reply");
|
||||
assert!(ok.accepted, "relay rejected broadcast reply: {}", ok.message);
|
||||
assert!(
|
||||
ok.accepted,
|
||||
"relay rejected broadcast reply: {}",
|
||||
ok.message
|
||||
);
|
||||
|
||||
client.disconnect().await.expect("disconnect");
|
||||
|
||||
@@ -938,10 +942,12 @@ async fn test_nip10_thread_reply_not_in_top_level() {
|
||||
.find(|e| e["content"].as_str() == Some(content))
|
||||
.cloned()
|
||||
};
|
||||
let excluded = find(&excluded_content)
|
||||
.unwrap_or_else(|| panic!("excluded reply must be recorded under root. got: {under_root:?}"));
|
||||
let broadcast = find(&broadcast_content)
|
||||
.unwrap_or_else(|| panic!("broadcast reply must be recorded under root. got: {under_root:?}"));
|
||||
let excluded = find(&excluded_content).unwrap_or_else(|| {
|
||||
panic!("excluded reply must be recorded under root. got: {under_root:?}")
|
||||
});
|
||||
let broadcast = find(&broadcast_content).unwrap_or_else(|| {
|
||||
panic!("broadcast reply must be recorded under root. got: {under_root:?}")
|
||||
});
|
||||
|
||||
// Negative direction: depth >= 1 AND broadcast = false → EXCLUDED.
|
||||
// (Recorded under root + no `["broadcast","1"]` tag are exactly the two
|
||||
|
||||
Reference in New Issue
Block a user