summaryrefslogtreecommitdiffstats
path: root/tokio/tests
diff options
context:
space:
mode:
authorCarl Lerche <me@carllerche.com>2020-11-10 09:40:20 -0800
committerGitHub <noreply@github.com>2020-11-10 09:40:20 -0800
commite1256d8ca4c510c8417874660e74760d87178445 (patch)
tree08312ba9a260aa69ce9f5c3a1e1a4c76ae0205ed /tokio/tests
parenta52f5071bf5ecf31c44e8aba5d8611400c50eb71 (diff)
io: update AsyncFd to use Registration (#3113)
Diffstat (limited to 'tokio/tests')
-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()));
}