Added Server::stop test

This commit is contained in:
eidheim 2017-07-07 22:23:39 +02:00
commit 7d5599b8e5

View file

@ -114,6 +114,17 @@ int main() {
});
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");