Skip to content

Commit

Permalink
Fix failed test
Browse files Browse the repository at this point in the history
  • Loading branch information
taiki-e committed Oct 16, 2019
1 parent a7fab45 commit 9e1d09e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/buf_writer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,13 @@ fn test_buffered_writer() {
}

#[test]
fn test_buffered_writer_inner_into_inner_does_not_flush() {
fn test_buffered_writer_inner_into_inner_flushes() {
task::block_on(async {
let mut w = BufWriter::with_capacity(3, Vec::new());
w.write(&[0, 1]).await.unwrap();
assert_eq!(*w.get_ref(), []);
let w = w.into_inner().await.unwrap();
assert_eq!(w, []);
assert_eq!(w, [0, 1]);
})
}

Expand Down

0 comments on commit 9e1d09e

Please sign in to comment.