From 82aa388f153e3184599dfa08c8c79ad42ff0a5ac Mon Sep 17 00:00:00 2001 From: Cameron Bytheway Date: Thu, 9 Jan 2025 17:00:43 -0700 Subject: [PATCH] test(s2n-quic-dc): ignore read errors for send tests (#2421) --- dc/s2n-quic-dc/src/stream/send/tests.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dc/s2n-quic-dc/src/stream/send/tests.rs b/dc/s2n-quic-dc/src/stream/send/tests.rs index 05270272f..23c42273c 100644 --- a/dc/s2n-quic-dc/src/stream/send/tests.rs +++ b/dc/s2n-quic-dc/src/stream/send/tests.rs @@ -56,7 +56,9 @@ async fn run(protocol: Protocol, buffer_len: usize, iterations: usize, features: async move { let mut data = vec![0; 1 << 17]; loop { - let len = stream.read(&mut data).await.unwrap(); + let Ok(len) = stream.read(&mut data).await else { + break; + }; if len == 0 { break; }