Skip to content

Commit

Permalink
Merge pull request #192 from aboseley/fix-macos-socket-test
Browse files Browse the repository at this point in the history
Fix test fails on osx
  • Loading branch information
aboseley authored Nov 24, 2021
2 parents 7da2fd0 + 6a48839 commit febe5f0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ jobs:
env:
CC: ${{ matrix.config.cc }}
CXX: ${{ matrix.config.cxx }}
CTEST_OUTPUT_ON_FAILURE: 1
PACKAGES: ${{ matrix.config.system_packages }}

steps:
Expand Down
3 changes: 2 additions & 1 deletion test/socket/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -557,6 +557,7 @@ TEST_CASE( "Socket Monitor", "[socket]" ) {

using socket_ptr = std::unique_ptr<azmq::socket>;
socket_ptr client(new azmq::socket(ios, ZMQ_DEALER));

socket_ptr server(new azmq::socket(ios, ZMQ_DEALER));

monitor_handler client_monitor(ios_m, *client, "client");
Expand All @@ -580,7 +581,7 @@ TEST_CASE( "Socket Monitor", "[socket]" ) {
client.reset();
server.reset();

std::this_thread::sleep_for(std::chrono::seconds(1));
std::this_thread::sleep_for(std::chrono::seconds(3));

ios_m.stop();
t.join();
Expand Down

0 comments on commit febe5f0

Please sign in to comment.