net: enable more Miri tests for TCP socket (#8180)

This commit is contained in:
WhySoBad
2026-06-02 23:50:54 +08:00
committed by GitHub
parent 326bd2cc44
commit 2de86e557c
4 changed files with 38 additions and 45 deletions
-2
View File
@@ -1155,7 +1155,6 @@ rt_test! {
#[cfg(not(target_os = "wasi"))] // Wasi does not support bind
#[test]
#[cfg_attr(miri, ignore)] // Miri currently only processes host I/O events when switching into the scheduler: See https://github.com/rust-lang/miri/issues/5047
fn local_set_client_server_block_on() {
let rt = rt();
let (tx, rx) = mpsc::channel();
@@ -1169,7 +1168,6 @@ rt_test! {
}
#[cfg(not(target_os = "wasi"))] // Wasi does not support bind
#[cfg_attr(miri, ignore)] // Miri currently only processes host I/O events when switching into the scheduler: See https://github.com/rust-lang/miri/issues/5047
async fn client_server_local(tx: mpsc::Sender<()>) {
let server = assert_ok!(TcpListener::bind("127.0.0.1:0").await);