Selaa lähdekoodia

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>
Jiri Slaby 6 kuukautta sitten
vanhempi
commit
fc885cc62d
1 muutettua tiedostoa jossa 0 lisäystä ja 1 poistoa
  1. 0 1
      test/test.cc

+ 0 - 1
test/test.cc

@@ -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;