mirror of
https://github.com/yhirose/cpp-httplib.git
synced 2026-10-23 11:54:42 +00: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:
1 parent
ca82c93772
commit
fc885cc62d
1 file changed
-1
@@ -17450,7 +17450,6 @@ TEST_F(WebSocketIntegrationTest, SocketSettings) {
|
|||||||
ws::WebSocketClient client("ws://localhost:" + std::to_string(port_) +
|
ws::WebSocketClient client("ws://localhost:" + std::to_string(port_) +
|
||||||
"/ws-echo");
|
"/ws-echo");
|
||||||
client.set_tcp_nodelay(true);
|
client.set_tcp_nodelay(true);
|
||||||
client.set_address_family(AF_INET);
|
|
||||||
client.set_connection_timeout(3, 0);
|
client.set_connection_timeout(3, 0);
|
||||||
|
|
||||||
bool socket_options_called = false;
|
bool socket_options_called = false;
|
||||||
|
|||||||
Reference in new issue
Block a user