Skip to content

Commit f2e9762

Browse files
committed
replaced chrono literals because they are not available prior to cpp14
1 parent be5206f commit f2e9762

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

tests/monitor.cpp

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -154,9 +154,6 @@ TEST_CASE("monitor from move assigned socket", "[monitor]")
154154
#if defined(ZMQ_BUILD_DRAFT_API) && defined(ZMQ_CPP11) \
155155
&& !defined(ZMQ_CPP11_PARTIAL) && defined(ZMQ_HAVE_POLLER)
156156
#include "zmq_addon.hpp"
157-
#include <chrono>
158-
159-
using namespace std::literals::chrono_literals;
160157

161158
TEST_CASE("poll monitor events using active poller", "[monitor]")
162159
{
@@ -221,15 +218,15 @@ TEST_CASE("poll monitor events using active poller", "[monitor]")
221218

222219
//Act
223220
for (int i = 0; i < 10; i++) {
224-
poller.wait(10ms);
221+
poller.wait(std::chrono::milliseconds(10));
225222
}
226223
CHECK(monitor.clientAccepted == 1);
227224
CHECK(monitor.clientDisconnected == 0);
228225

229226
sockets.client.close();
230227

231228
for (int i = 0; i < 10; i++) {
232-
poller.wait(10ms);
229+
poller.wait(std::chrono::milliseconds(10));
233230
}
234231
sockets.server.close();
235232

0 commit comments

Comments
 (0)