test: WebSocketIntegrationTest.SocketSettings: do not set AF_INET (#2420)

The server listens on AF_INET6 only (::1), so the test fails:
 [ RUN      ] WebSocketIntegrationTest.SocketSettings
 test/test.cc:17160: Failure
 Value of: client.connect()
   Actual: false
 Expected: true

Fixes #2419.

Co-authored-by: Jiri Slaby <jslaby@suse.cz>
This commit is contained in:
Jiri Slaby
2026-04-08 07:48:13 -04:00
committed by GitHub
co-authored by Jiri Slaby
parent ca82c93772
commit fc885cc62d
-1
View File
@@ -17450,7 +17450,6 @@ TEST_F(WebSocketIntegrationTest, SocketSettings) {
ws::WebSocketClient client("ws://localhost:" + std::to_string(port_) +
"/ws-echo");
client.set_tcp_nodelay(true);
client.set_address_family(AF_INET);
client.set_connection_timeout(3, 0);
bool socket_options_called = false;