fix unittest

This commit is contained in:
Benjamin Sergeant 2019-09-22 19:40:33 -07:00
parent 283cf83d47
commit b667c0ad40
2 changed files with 4 additions and 2 deletions

View File

@ -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)
{ {

View File

@ -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");