Skip to content

Commit

Permalink
flush
Browse files Browse the repository at this point in the history
  • Loading branch information
mmastrac committed Nov 15, 2023
1 parent 3f435d9 commit 4875d87
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/stream.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1827,7 +1827,7 @@ pub(super) mod tests {

let (server, client) = tls_pair_buffer_size(BUF_SIZE.try_into().ok()).await;

let (server, mut client) = if swap {
let (server, client) = if swap {
(client, server)
} else {
(server, client)
Expand All @@ -1844,6 +1844,7 @@ pub(super) mod tests {
// Heap allocate a large buffer and send it
let buf = vec![42; BUF_COUNT * BUF_SIZE];
w.write_all(&buf).await.unwrap();
w.flush().await.unwrap();
w.shutdown().await.unwrap();
});

Expand Down

0 comments on commit 4875d87

Please sign in to comment.