aboutsummaryrefslogtreecommitdiff
path: root/tests/buffer_unordered.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/buffer_unordered.rs')
-rw-r--r--tests/buffer_unordered.rs15
1 files changed, 8 insertions, 7 deletions
diff --git a/tests/buffer_unordered.rs b/tests/buffer_unordered.rs
index 1c559c8..6485a1e 100644
--- a/tests/buffer_unordered.rs
+++ b/tests/buffer_unordered.rs
@@ -1,13 +1,14 @@
-use futures::channel::{oneshot, mpsc};
-use futures::executor::{block_on, block_on_stream};
-use futures::sink::SinkExt;
-use futures::stream::StreamExt;
-use std::sync::mpsc as std_mpsc;
-use std::thread;
-
+#[cfg(all(feature = "alloc", feature = "std", feature = "executor"))]
#[test]
#[ignore] // FIXME: https://github.com/rust-lang/futures-rs/issues/1790
fn works() {
+ use futures::channel::{oneshot, mpsc};
+ use futures::executor::{block_on, block_on_stream};
+ use futures::sink::SinkExt;
+ use futures::stream::StreamExt;
+ use std::sync::mpsc as std_mpsc;
+ use std::thread;
+
const N: usize = 4;
let (mut tx, rx) = mpsc::channel(1);