1
0
mirror of synced 2025-04-21 22:25:55 +03:00

Adjusted SlowRequest test

This commit is contained in:
yhirose 2020-09-25 18:13:10 -04:00
parent a2f4e29a7b
commit 559c407552

View File

@ -1333,9 +1333,12 @@ protected:
virtual void TearDown() {
svr_.stop();
if (!request_threads_.empty()) {
std::this_thread::sleep_for(std::chrono::seconds(1));
for (auto &t : request_threads_) {
t.join();
}
}
t_.join();
}
@ -2051,7 +2054,6 @@ TEST_F(ServerTest, SlowRequest) {
std::thread([=]() { auto res = cli_.Get("/slow"); }));
request_threads_.push_back(
std::thread([=]() { auto res = cli_.Get("/slow"); }));
std::this_thread::sleep_for(std::chrono::milliseconds(100));
}
TEST_F(ServerTest, SlowPost) {