Skip to content

Commit

Permalink
Fix: longer sleep period in reactor.multiple_asynchronous_handlers test
Browse files Browse the repository at this point in the history
  • Loading branch information
Neloop committed Jan 9, 2021
1 parent 5786b0c commit cef4b01
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
- run: mkdir build
- run: cmake ..
working-directory: build
- run: make
- run: make -j 4
working-directory: build
- run: ctest --output-on-failure
working-directory: build
Expand Down
2 changes: 1 addition & 1 deletion tests/reactor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ TEST(reactor, multiple_asynchronous_handlers)
socket_2->send_message_local(message_container("", "id1", {"socket_2"}));
}

std::this_thread::sleep_for(std::chrono::milliseconds(30));
std::this_thread::sleep_for(std::chrono::milliseconds(200));

ASSERT_EQ(message_count, handler_1->received.size());
ASSERT_EQ(message_count, handler_2a->received.size());
Expand Down

0 comments on commit cef4b01

Please sign in to comment.