Skip to content

Commit de113df

Browse files
committed
Add nonblocking in server test helper
1 parent 994897a commit de113df

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/server.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2348,6 +2348,7 @@ fn has_header(msg: &str, name: &str) -> bool {
23482348

23492349
fn tcp_bind(addr: &SocketAddr) -> ::tokio::io::Result<TcpListener> {
23502350
let std_listener = StdTcpListener::bind(addr).unwrap();
2351+
std_listener.set_nonblocking(true).unwrap();
23512352
TcpListener::from_std(std_listener)
23522353
}
23532354

0 commit comments

Comments
 (0)