mirror of
https://github.com/yhirose/cpp-httplib.git
synced 2026-10-01 13:12:40 +07:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user