Supply authenticated deletion scope and check fixture reads

Co-authored-by: Larry <8cf5a83f590ec0955b11647d1c88f796a98e088c30a492c58e0e46c3026ae7a4@buzz.block.builderlab.xyz>
Signed-off-by: Logan Johnson <loganj@squareup.com>
Signed-off-by: Larry <8cf5a83f590ec0955b11647d1c88f796a98e088c30a492c58e0e46c3026ae7a4@buzz.block.builderlab.xyz>
Signed-off-by: Logan Johnson <loganj@squareup.com>
This commit is contained in:
Logan Johnson
2026-08-28 14:21:28 -04:00
parent 43109e150d
commit f86c27a970
2 changed files with 2 additions and 2 deletions

View File

@@ -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!(

View File

@@ -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(),
},