Skip to content

Commit

Permalink
test(s2n-quic-dc): ignore read errors for send tests (#2421)
Browse files Browse the repository at this point in the history
  • Loading branch information
camshaft authored Jan 10, 2025
1 parent 2f357d5 commit 82aa388
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion dc/s2n-quic-dc/src/stream/send/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 82aa388

Please sign in to comment.