diff --git a/tests/async_fd/io.rs b/tests/async_fd/io.rs index bea3764..c608c7d 100644 --- a/tests/async_fd/io.rs +++ b/tests/async_fd/io.rs @@ -44,6 +44,14 @@ fn try_clone() { assert_eq!(&buf.data, DATA); } +#[test] +fn read_buf_pool_is_send_and_sync() { + is_send::(); + is_sync::(); + is_send::(); + is_sync::(); +} + #[test] fn read_buf_pool_size_assertion() { assert_eq!(std::mem::size_of::(), 8); @@ -58,11 +66,6 @@ fn read_read_buf_pool() { let mut ring = Ring::new(2).expect("failed to create test ring"); let sq = ring.submission_queue().clone(); - is_send::(); - is_sync::(); - is_send::(); - is_sync::(); - let test_file = &LOREM_IPSUM_50; let buf_pool = ReadBufPool::new(sq.clone(), 2, BUF_SIZE as u32).unwrap();