fix unittest
This commit is contained in:
		| @@ -138,7 +138,8 @@ namespace ix | |||||||
|  |  | ||||||
|         bool tls = protocol == "https"; |         bool tls = protocol == "https"; | ||||||
|         std::string errorMsg; |         std::string errorMsg; | ||||||
|         _socket = createSocket(tls, errorMsg); |         SocketTLSOptions tlsOptions; | ||||||
|  |         _socket = createSocket(tls, errorMsg, tlsOptions); | ||||||
|  |  | ||||||
|         if (!_socket) |         if (!_socket) | ||||||
|         { |         { | ||||||
|   | |||||||
| @@ -82,7 +82,8 @@ TEST_CASE("socket", "[socket]") | |||||||
|     { |     { | ||||||
|         std::string errMsg; |         std::string errMsg; | ||||||
|         bool tls = true; |         bool tls = true; | ||||||
|         std::shared_ptr<Socket> socket = createSocket(tls, errMsg); |         SocketTLSOptions tlsOptions; | ||||||
|  |         std::shared_ptr<Socket> socket = createSocket(tls, errMsg, tlsOptions); | ||||||
|         std::string host("www.google.com"); |         std::string host("www.google.com"); | ||||||
|         int port = 443; |         int port = 443; | ||||||
|         std::string request("GET / HTTP/1.1\r\n\r\n"); |         std::string request("GET / HTTP/1.1\r\n\r\n"); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user