diff options
Diffstat (limited to 'tokio-test/tests/block_on.rs')
-rw-r--r-- | tokio-test/tests/block_on.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tokio-test/tests/block_on.rs b/tokio-test/tests/block_on.rs index 3c0fe32f..b50f9ae1 100644 --- a/tokio-test/tests/block_on.rs +++ b/tokio-test/tests/block_on.rs @@ -1,6 +1,6 @@ #![warn(rust_2018_idioms)] -use tokio::time::{delay, Duration, Instant}; +use tokio::time::{delay_until, Duration, Instant}; use tokio_test::block_on; #[test] @@ -20,5 +20,5 @@ fn async_fn() { #[test] fn test_delay() { let deadline = Instant::now() + Duration::from_millis(100); - assert_eq!((), block_on(delay(deadline))); + assert_eq!((), block_on(delay_until(deadline))); } |