Skip to content

Commit a9c7802

Browse files
committed
Fix a flakey ListenSocket test
The server-side of this test is forced to fail, so it doesn't make sense to assume to client-side will succeed.
1 parent c4c63a8 commit a9c7802

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

test/net/listen_socket.cpp

+1-2
Original file line numberDiff line numberDiff line change
@@ -396,8 +396,7 @@ CATCH_TEMPLATE_TEST_CASE("AsyncListenSocket", "[net]", fly::net::IPv4Address, fl
396396
CATCH_REQUIRE(client_socket);
397397
signal.wait();
398398

399-
fly::net::ConnectedState state = client_socket->connect(s_localhost, s_port);
400-
CATCH_CHECK(state == fly::net::ConnectedState::Connected);
399+
FLY_UNUSED(client_socket->connect(s_localhost, s_port));
401400
};
402401

403402
fly::test::invoke(std::move(server_thread), std::move(client_thread));

0 commit comments

Comments
 (0)