summaryrefslogtreecommitdiffstats
path: root/tokio-util/tests/context.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tokio-util/tests/context.rs')
-rw-r--r--tokio-util/tests/context.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/tokio-util/tests/context.rs b/tokio-util/tests/context.rs
index 2e39b144..ee519130 100644
--- a/tokio-util/tests/context.rs
+++ b/tokio-util/tests/context.rs
@@ -21,5 +21,5 @@ fn tokio_context_with_another_runtime() {
// Without the `HandleExt.wrap()` there would be a panic because there is
// no timer running, since it would be referencing runtime r1.
- let _ = rt1.block_on(rt2.wrap(async move { delay_for(Duration::from_millis(2)).await }));
+ let _ = rt1.block_on(rt2.wrap(async move { sleep(Duration::from_millis(2)).await }));
}