Actually delay by 1 second
This commit is contained in:
parent
a7f0488ee5
commit
1ba054a266
@ -1,4 +1,4 @@
|
|||||||
use futures::{Future, IntoFuture};
|
use futures::{Future, Stream};
|
||||||
use futures_state_stream::StateStream;
|
use futures_state_stream::StateStream;
|
||||||
use std::error::Error as StdError;
|
use std::error::Error as StdError;
|
||||||
use std::time::Duration;
|
use std::time::Duration;
|
||||||
@ -343,9 +343,10 @@ fn cancel() {
|
|||||||
let c = c.unwrap();
|
let c = c.unwrap();
|
||||||
let cancel_data = c.cancel_data();
|
let cancel_data = c.cancel_data();
|
||||||
let cancel = Interval::new(Duration::from_secs(1), &handle)
|
let cancel = Interval::new(Duration::from_secs(1), &handle)
|
||||||
|
.unwrap()
|
||||||
.into_future()
|
.into_future()
|
||||||
.then(move |r| {
|
.then(move |r| {
|
||||||
r.unwrap();
|
assert!(r.is_ok());
|
||||||
cancel_query("postgres://postgres@localhost",
|
cancel_query("postgres://postgres@localhost",
|
||||||
TlsMode::None,
|
TlsMode::None,
|
||||||
cancel_data,
|
cancel_data,
|
||||||
|
Loading…
Reference in New Issue
Block a user