Skip to content

Commit

Permalink
Fix a flaky TCP test (bytecodealliance#7223)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexcrichton authored Oct 12, 2023
1 parent defda32 commit 20d3056
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ fn test_tcp_sockopt_inheritance(net: &Network, family: IpAddressFamily) {
let bound_addr = listener.local_address().unwrap();
let client = TcpSocket::new(family).unwrap();
client.blocking_connect(&net, bound_addr).unwrap();
let (accepted_client, _, _) = listener.accept().unwrap();
let (accepted_client, _, _) = listener.blocking_accept().unwrap();

// Verify options on accepted socket:
{
Expand Down Expand Up @@ -157,7 +157,7 @@ fn test_tcp_sockopt_after_listen(net: &Network, family: IpAddressFamily) {

let client = TcpSocket::new(family).unwrap();
client.blocking_connect(&net, bound_addr).unwrap();
let (accepted_client, _, _) = listener.accept().unwrap();
let (accepted_client, _, _) = listener.blocking_accept().unwrap();

// Verify options on accepted socket:
{
Expand Down

0 comments on commit 20d3056

Please sign in to comment.