Skip to content

Commit e405544

Browse files
authored
Enable tests on CI (#357)
* Enable tests on CI * Fix failed test
1 parent ca80ca9 commit e405544

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/workflows/ci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
uses: actions-rs/cargo@v1
4242
with:
4343
command: test
44-
args: --all --doc --features unstable
44+
args: --all --features unstable
4545

4646
check_fmt_and_docs:
4747
name: Checking fmt and docs

tests/buf_writer.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -48,13 +48,13 @@ fn test_buffered_writer() {
4848
}
4949

5050
#[test]
51-
fn test_buffered_writer_inner_into_inner_does_not_flush() {
51+
fn test_buffered_writer_inner_into_inner_flushes() {
5252
task::block_on(async {
5353
let mut w = BufWriter::with_capacity(3, Vec::new());
5454
w.write(&[0, 1]).await.unwrap();
5555
assert_eq!(*w.get_ref(), []);
5656
let w = w.into_inner().await.unwrap();
57-
assert_eq!(w, []);
57+
assert_eq!(w, [0, 1]);
5858
})
5959
}
6060

0 commit comments

Comments
 (0)