summaryrefslogtreecommitdiffstats
path: root/tokio/tests/io_async_fd.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tokio/tests/io_async_fd.rs')
-rw-r--r--tokio/tests/io_async_fd.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/tokio/tests/io_async_fd.rs b/tokio/tests/io_async_fd.rs
index f3b89b35..f8dc65fe 100644
--- a/tokio/tests/io_async_fd.rs
+++ b/tokio/tests/io_async_fd.rs
@@ -500,10 +500,10 @@ fn driver_shutdown_wakes_currently_pending() {
std::mem::drop(rt);
- // Being awoken by a rt drop does not return an error, currently...
- let _ = futures::executor::block_on(readable).unwrap();
+ // The future was initialized **before** dropping the rt
+ assert_err!(futures::executor::block_on(readable));
- // However, attempting to initiate a readiness wait when the rt is dropped is an error
+ // The future is initialized **after** dropping the rt.
assert_err!(futures::executor::block_on(afd_a.readable()));
}