Skip to content

Commit 5568482

Browse files
committed
Modified a commented test to validate the secure mode of SocketTestQt.
1 parent d3edd52 commit 5568482

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ SocketTest/coverage/*
1313
#Windows
1414
.vs/*
1515
Socket.VC.db
16+
Socket.VC.VC.opendb
1617
Socket.sln
1718
Socket/.vs/*
1819
Socket/ReadMe.txt

SocketTest/Tests.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,8 @@ TEST_F(SSLTCPTest, TestServer)
225225
ASecureSocket::SSLSocket ConnectedClient;
226226
227227
ASSERT_NO_THROW(m_pSSLTCPServer.reset(new CTCPSSLServer(PRINT_LOG, "4242")));
228-
m_pSSLTCPServer->SetSSLCertFile("C:\\TestOpenSSL\\site.cert");
228+
m_pSSLTCPServer->SetSSLCertFile(SSL_CERT_FILE);
229+
m_pSSLTCPServer->SetSSLKeyFile(SSL_KEY_FILE);
229230
230231
ASSERT_TRUE(m_pSSLTCPServer->Listen(ConnectedClient));
231232

0 commit comments

Comments
 (0)