summaryrefslogtreecommitdiffstats
path: root/tests/limit.rs
diff options
context:
space:
mode:
authorCarl Lerche <me@carllerche.com>2018-02-01 10:31:07 -0800
committerGitHub <noreply@github.com>2018-02-01 10:31:07 -0800
commit2e94b658ed161ef7207a8decb20564556e9883f8 (patch)
treeb5ae64e1760a4b648398290f7958cd202a470c8b /tests/limit.rs
parentb9db119b456427d655b651f4f16d4266e6e16d98 (diff)
Track futures tokio-reform branch (#88)
This patch also updates tests and examples to remove deprecated API usage.
Diffstat (limited to 'tests/limit.rs')
-rw-r--r--tests/limit.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/limit.rs b/tests/limit.rs
index 7055ce9b..053f4385 100644
--- a/tests/limit.rs
+++ b/tests/limit.rs
@@ -7,6 +7,7 @@ use std::thread;
use std::io::{Write, Read};
use futures::Future;
+use futures::future::blocking;
use futures::stream::Stream;
use tokio_io::io::read_to_end;
use tokio::net::TcpListener;
@@ -36,7 +37,7 @@ fn limit() {
read_to_end(a.take(4), Vec::new())
});
- let (_, data) = t!(copied.wait());
+ let (_, data) = t!(blocking(copied).wait());
t.join().unwrap();
assert_eq!(data, b"foo ");