Explorar o código

Add wss:// to unit test

bel %!s(int64=10) %!d(string=hai) anos
pai
achega
5c94f638a7
Modificáronse 1 ficheiros con 5 adicións e 0 borrados
  1. 5 0
      test/public_server.c

+ 5 - 0
test/public_server.c

@@ -1048,8 +1048,13 @@ START_TEST(test_request_handlers)
 	/* Connect client 3 */
 	ws_client3_conn =
 	    mg_connect_websocket_client("localhost",
+#if defined(NO_SSL)
 	                                ipv4_port,
 	                                0,
+#else
+	                                ipv4s_port,
+	                                1,
+#endif
 	                                ebuf,
 	                                sizeof(ebuf),
 	                                "/websocket",