mirror of
https://github.com/block/buzz.git
synced 2026-11-09 10:51:42 +00:00
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:
@@ -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!(
|
||||
|
||||
@@ -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(),
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user