From f86c27a97013738378e17d61b45a8d7daf12622f Mon Sep 17 00:00:00 2001 From: Logan Johnson Date: Fri, 28 Aug 2026 14:21:28 -0400 Subject: [PATCH] Supply authenticated deletion scope and check fixture reads Co-authored-by: Larry <8cf5a83f590ec0955b11647d1c88f796a98e088c30a492c58e0e46c3026ae7a4@buzz.block.builderlab.xyz> Signed-off-by: Logan Johnson Signed-off-by: Larry <8cf5a83f590ec0955b11647d1c88f796a98e088c30a492c58e0e46c3026ae7a4@buzz.block.builderlab.xyz> Signed-off-by: Logan Johnson --- crates/buzz-acp/src/workflow_wake_recovery_tests.rs | 2 +- crates/buzz-relay/src/workflow_delivery_tests.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/buzz-acp/src/workflow_wake_recovery_tests.rs b/crates/buzz-acp/src/workflow_wake_recovery_tests.rs index 9e07b11ef6..82a54215e1 100644 --- a/crates/buzz-acp/src/workflow_wake_recovery_tests.rs +++ b/crates/buzz-acp/src/workflow_wake_recovery_tests.rs @@ -230,7 +230,7 @@ async fn complete_malformed_authority_body_is_terminal() { for body in ["{", "{}"] { let (mut stream, _) = listener.accept().await.unwrap(); let mut request = [0u8; 4096]; - stream.read(&mut request).await.unwrap(); + assert!(stream.read(&mut request).await.unwrap() > 0); stream .write_all( format!( diff --git a/crates/buzz-relay/src/workflow_delivery_tests.rs b/crates/buzz-relay/src/workflow_delivery_tests.rs index e46c9a3708..3d045bc219 100644 --- a/crates/buzz-relay/src/workflow_delivery_tests.rs +++ b/crates/buzz-relay/src/workflow_delivery_tests.rs @@ -266,7 +266,7 @@ async fn captured_revision_survives_replacement_but_not_revocation() { deletion, crate::handlers::ingest::IngestAuth::Nip42 { pubkey: f.owner.public_key(), - scopes: vec![], + scopes: vec![buzz_auth::Scope::MessagesWrite], channel_ids: None, conn_id: Uuid::new_v4(), },