diff options
author | Carl Lerche <me@carllerche.com> | 2020-11-10 09:40:20 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-10 09:40:20 -0800 |
commit | e1256d8ca4c510c8417874660e74760d87178445 (patch) | |
tree | 08312ba9a260aa69ce9f5c3a1e1a4c76ae0205ed /tokio/tests | |
parent | a52f5071bf5ecf31c44e8aba5d8611400c50eb71 (diff) |
io: update AsyncFd to use Registration (#3113)
Diffstat (limited to 'tokio/tests')
-rw-r--r-- | tokio/tests/io_async_fd.rs | 6 |
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())); } |