Skip to content

Commit

Permalink
update ws test
Browse files Browse the repository at this point in the history
  • Loading branch information
markaren committed Sep 28, 2024
1 parent 97c2940 commit 686e20b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions tests/integration/run_ws.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ int main() {
c->send(msg);
};

#ifdef _WIN32
system("start ws_client.html");
#endif

//wait for key press
std::cout << "Press any key to stop server.." << std::endl;
Expand Down
2 changes: 1 addition & 1 deletion tests/test_ws.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ TEST_CASE("test Websocket") {
};

client.connect("127.0.0.1", *port);
std::this_thread::sleep_for(std::chrono::seconds(1));
std::this_thread::sleep_for(std::chrono::seconds(2));

client.close();
ws.stop();
Expand Down

0 comments on commit 686e20b

Please sign in to comment.