Skip to content

Commit c90f23c

Browse files
committed
test(lib): fix for read_exact
1 parent 1fbac8f commit c90f23c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

compio/tests/runtime.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,7 @@ async fn multi_threading() {
2424
tx.write_all(DATA).await.0.unwrap();
2525
tx.write_all(DATA).await.0.unwrap();
2626

27-
let (n, buffer) = rx.read_exact(Vec::with_capacity(DATA.len())).await.unwrap();
28-
assert_eq!(n, buffer.len());
27+
let ((), buffer) = rx.read_exact(Vec::with_capacity(DATA.len())).await.unwrap();
2928
assert_eq!(DATA, String::from_utf8(buffer).unwrap());
3029

3130
compio::runtime::spawn_blocking(move || {

0 commit comments

Comments
 (0)