Skip to content

Commit

Permalink
Update test to new cancel API
Browse files Browse the repository at this point in the history
It now returns Ok(()) if the operation was not started, instead of ENOENT.
  • Loading branch information
Thomasdezeeuw committed Jan 3, 2025
1 parent c543ca5 commit c9dfaf3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/async_fd/net.rs
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ fn cancel_multishot_accept_before_poll() {

let mut accept_stream = listener.multishot_accept();

expect_io_errno(waker.block_on(accept_stream.cancel()), libc::ENOENT)
waker.block_on(accept_stream.cancel()).unwrap();
}

#[test]
Expand Down

0 comments on commit c9dfaf3

Please sign in to comment.