Skip to content

Commit 3369191

Browse files
committed
Fix tests by removing invalid test cases
Due to rust-lang/rust#124210, when an owned fd has already been closed before it's dropped means that something else touched the fd in ways its not allowed to. Therefore, these tests fail due to this new behavior enforcement Signed-off-by: Bryant Biggs <[email protected]>
1 parent 12a2770 commit 3369191

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

benches/lai/no_op.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ use tokio::task::JoinSet;
44
#[derive(Clone)]
55
struct Options {
66
iterations: usize,
7+
#[allow(dead_code)]
78
concurrency: usize,
89
sq_size: usize,
910
cq_size: usize,

tests/fs_file.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,6 @@ fn tempfile() -> NamedTempFile {
321321

322322
async fn poll_once(future: impl std::future::Future) {
323323
use std::future::poll_fn;
324-
// use std::future::Future;
325324
use std::task::Poll;
326325
use tokio::pin;
327326

@@ -344,4 +343,4 @@ fn assert_invalid_fd(fd: RawFd) {
344343
Err(ref e) if e.raw_os_error() == Some(libc::EBADF) => {}
345344
res => panic!("assert_invalid_fd finds for fd {:?}, res = {:?}", fd, res),
346345
}
347-
}
346+
}

0 commit comments

Comments
 (0)