From f2e9762bc9d5a3b8bf518da8477ff1258cd3da35 Mon Sep 17 00:00:00 2001 From: Stefan Dietel Date: Mon, 28 Aug 2023 09:40:41 +0200 Subject: [PATCH] replaced chrono literals because they are not available prior to cpp14 --- tests/monitor.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/tests/monitor.cpp b/tests/monitor.cpp index 3ed2143..abd0cd6 100644 --- a/tests/monitor.cpp +++ b/tests/monitor.cpp @@ -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 - -using namespace std::literals::chrono_literals; TEST_CASE("poll monitor events using active poller", "[monitor]") { @@ -221,7 +218,7 @@ 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); @@ -229,7 +226,7 @@ TEST_CASE("poll monitor events using active poller", "[monitor]") sockets.client.close(); for (int i = 0; i < 10; i++) { - poller.wait(10ms); + poller.wait(std::chrono::milliseconds(10)); } sockets.server.close();