[Fix] Clean
All checks were successful
CI / checks (push) Successful in 4m36s

This commit is contained in:
Alex Emmet 2026-08-14 14:39:09 +02:00
commit 188caf56cc
12 changed files with 124 additions and 157 deletions

View file

@ -342,13 +342,17 @@ async fn test_max_frames_per_stream_enforced() -> Result<(), Box<dyn std::error:
let tm = TypeMap::latest();
client_tx
.send(&numbered_message(CommunicationType::Ping, 1, &tm))
.await?;
let first = host_rx.receive().await?;
.await
.expect("first frame should be sent");
let first = host_rx
.receive()
.await
.expect("first frame should be received");
assert_numbered_message(&first, CommunicationType::Ping, 1, &tm);
client_tx
let _ = client_tx
.send(&numbered_message(CommunicationType::Ping, 2, &tm))
.await?;
.await;
let second = host_rx.receive().await;
assert!(second.is_err(), "stream should be closed after frame limit");