Skip to content

Commit

Permalink
replaced chrono literals because they are not available prior to cpp14
Browse files Browse the repository at this point in the history
  • Loading branch information
dietelTiMaMi committed Aug 28, 2023
1 parent be5206f commit f2e9762
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions tests/monitor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -154,9 +154,6 @@ TEST_CASE("monitor from move assigned socket", "[monitor]")
#if defined(ZMQ_BUILD_DRAFT_API) && defined(ZMQ_CPP11) \
&& !defined(ZMQ_CPP11_PARTIAL) && defined(ZMQ_HAVE_POLLER)
#include "zmq_addon.hpp"
#include <chrono>

using namespace std::literals::chrono_literals;

TEST_CASE("poll monitor events using active poller", "[monitor]")
{
Expand Down Expand Up @@ -221,15 +218,15 @@ TEST_CASE("poll monitor events using active poller", "[monitor]")

//Act
for (int i = 0; i < 10; i++) {
poller.wait(10ms);
poller.wait(std::chrono::milliseconds(10));
}
CHECK(monitor.clientAccepted == 1);
CHECK(monitor.clientDisconnected == 0);

sockets.client.close();

for (int i = 0; i < 10; i++) {
poller.wait(10ms);
poller.wait(std::chrono::milliseconds(10));
}
sockets.server.close();

Expand Down

0 comments on commit f2e9762

Please sign in to comment.