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.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/tokio/tests/io_async_fd.rs b/tokio/tests/io_async_fd.rs
index 0303eff6..f3b89b35 100644
--- a/tokio/tests/io_async_fd.rs
+++ b/tokio/tests/io_async_fd.rs
@@ -304,6 +304,15 @@ async fn drop_closes() {
}
#[tokio::test]
+async fn reregister() {
+ let (a, _b) = socketpair();
+
+ let afd_a = AsyncFd::new(a).unwrap();
+ let a = afd_a.into_inner();
+ AsyncFd::new(a).unwrap();
+}
+
+#[tokio::test]
async fn with_poll() {
use std::task::Poll;