Skip to content

Commit 6b68d36

Browse files
committed
fixed test
1 parent c67ae7f commit 6b68d36

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Test/main.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ void generaltest() {
4949
std::cout << "Starting General test..." << std::endl;
5050
//auto listener = SL::WS_LITE::WSListener::CreateListener(3002, TEST_CERTIFICATE_PRIVATE_PASSWORD, TEST_CERTIFICATE_PRIVATE_PATH, TEST_CERTIFICATE_PUBLIC_PATH, TEST_DH_PATH);
5151
SL::WS_LITE::ThreadCount thrdcount(1);
52-
SL::WS_LITE::PortNumber port(3001);
52+
SL::WS_LITE::PortNumber port(3002);
5353
auto listener = SL::WS_LITE::WSListener::CreateListener(thrdcount, port);
5454
auto lastheard = std::chrono::high_resolution_clock::now();
5555
listener.onHttpUpgrade([&](const SL::WS_LITE::WSocket& socket) {
@@ -83,7 +83,7 @@ void generaltest() {
8383
lastheard = std::chrono::high_resolution_clock::now();
8484
SL_WS_LITE_LOG(SL::WS_LITE::Logging_Levels::INFO_log_level, "client::onDisconnection");
8585
});
86-
client.connect("localhost", 3002);
86+
client.connect("localhost", port);
8787

8888
while (std::chrono::duration_cast<std::chrono::milliseconds>(std::chrono::high_resolution_clock::now() - lastheard).count() < 2000) {
8989
std::this_thread::sleep_for(200ms);

0 commit comments

Comments
 (0)