瀏覽代碼

Fixed CI WebSocket test on MacOS

Paul-Louis Ageneau 4 年之前
父節點
當前提交
93e985a541
共有 1 個文件被更改,包括 3 次插入4 次删除
  1. 3 4
      test/websocket.cpp

+ 3 - 4
test/websocket.cpp

@@ -36,10 +36,9 @@ void test_websocket() {
 
 	const string myMessage = "Hello world from libdatachannel";
 
-	WebSocket ws;
-
-	// Certificate verification can be disabled
-	// WebSocket ws(WebSocket::Configuration{.disableTlsVerification = true});
+	WebSocket::Configuration config;
+	config.disableTlsVerification = true;
+	WebSocket ws(std::move(config));
 
 	ws.onOpen([&ws, &myMessage]() {
 		cout << "WebSocket: Open" << endl;