From e1256d8ca4c510c8417874660e74760d87178445 Mon Sep 17 00:00:00 2001 From: Carl Lerche Date: Tue, 10 Nov 2020 09:40:20 -0800 Subject: io: update AsyncFd to use Registration (#3113) --- tokio/tests/io_async_fd.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tokio/tests') 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())); } -- cgit v1.2.3