fix unittest

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

View File

@ -138,7 +138,8 @@ namespace ix
bool tls = protocol == "https";
std::string errorMsg;
_socket = createSocket(tls, errorMsg);
SocketTLSOptions tlsOptions;
_socket = createSocket(tls, errorMsg, tlsOptions);
if (!_socket)
{

View File

@ -82,7 +82,8 @@ TEST_CASE("socket", "[socket]")
{
std::string errMsg;
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");
int port = 443;
std::string request("GET / HTTP/1.1\r\n\r\n");