Added Server::stop test
This commit is contained in:
parent
06d3c701e1
commit
7d5599b8e5
1 changed files with 11 additions and 0 deletions
|
|
@ -114,6 +114,17 @@ int main() {
|
||||||
});
|
});
|
||||||
|
|
||||||
this_thread::sleep_for(chrono::seconds(1));
|
this_thread::sleep_for(chrono::seconds(1));
|
||||||
|
|
||||||
|
server.stop();
|
||||||
|
server_thread.join();
|
||||||
|
|
||||||
|
server_thread = thread([&server]() {
|
||||||
|
//Start server
|
||||||
|
server.start();
|
||||||
|
});
|
||||||
|
|
||||||
|
this_thread::sleep_for(chrono::seconds(1));
|
||||||
|
|
||||||
{
|
{
|
||||||
HttpClient client("localhost:8080");
|
HttpClient client("localhost:8080");
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue