Skip to content

Commit

Permalink
enhanced http server test
Browse files Browse the repository at this point in the history
  • Loading branch information
zussel committed Oct 7, 2022
1 parent 95e0833 commit 7184799
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/http/HttpServerTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ void HttpServerTest::test_post()
UNIT_ASSERT_EQUAL("<h1>hello world</h1>", resp.body());
UNIT_ASSERT_EQUAL(http::http::OK, resp.status());

std::this_thread::sleep_for(std::chrono::seconds (1));
std::this_thread::sleep_for(std::chrono::milliseconds (300));

wrapper.stop();

Expand Down Expand Up @@ -175,7 +175,7 @@ void HttpServerTest::test_put()
UNIT_ASSERT_EQUAL("<h1>hello world</h1>", resp.body());
UNIT_ASSERT_EQUAL(http::http::OK, resp.status());

std::this_thread::sleep_for(std::chrono::seconds (1));
std::this_thread::sleep_for(std::chrono::milliseconds (400));

wrapper.stop();

Expand Down Expand Up @@ -205,7 +205,7 @@ void HttpServerTest::test_delete()
UNIT_ASSERT_EQUAL("<h1>hello world</h1>", resp.body());
UNIT_ASSERT_EQUAL(http::http::OK, resp.status());

std::this_thread::sleep_for(std::chrono::seconds (1));
std::this_thread::sleep_for(std::chrono::milliseconds (400));

wrapper.stop();

Expand Down

0 comments on commit 7184799

Please sign in to comment.