summaryrefslogtreecommitdiff
path: root/tests/stream_timeout.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/stream_timeout.rs')
-rw-r--r--tests/stream_timeout.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/stream_timeout.rs b/tests/stream_timeout.rs
index 5697ace..2338f83 100644
--- a/tests/stream_timeout.rs
+++ b/tests/stream_timeout.rs
@@ -1,10 +1,10 @@
-#![cfg(feature = "full")]
+#![cfg(all(feature = "time", feature = "sync", feature = "io-util"))]
use tokio::time::{self, sleep, Duration};
use tokio_stream::{self, StreamExt};
use tokio_test::*;
-use futures::StreamExt as _;
+use futures::stream;
async fn maybe_sleep(idx: i32) -> i32 {
if idx % 2 == 0 {