aboutsummaryrefslogtreecommitdiff
path: root/tests/tcp_split.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/tcp_split.rs')
-rw-r--r--tests/tcp_split.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/tcp_split.rs b/tests/tcp_split.rs
index 7171dac..335b21f 100644
--- a/tests/tcp_split.rs
+++ b/tests/tcp_split.rs
@@ -1,5 +1,5 @@
#![warn(rust_2018_idioms)]
-#![cfg(feature = "full")]
+#![cfg(all(feature = "full", not(tokio_wasi)))] // Wasi doesn't support bind
use std::io::Result;
use std::io::{Read, Write};
@@ -36,7 +36,7 @@ async fn split() -> Result<()> {
assert_eq!(peek_len1, read_len);
assert_eq!(&read_buf[..read_len], MSG);
- write_half.write(MSG).await?;
+ assert_eq!(write_half.write(MSG).await?, MSG.len());
handle.join().unwrap();
Ok(())
}