Explicitly refer to the std::chrono namespace to avoid conflicts with the folly:...
[folly.git] / folly / io / async / test / EventHandlerTest.cpp
index feb2f77414bd0c4aab1620b430033f04c5cb0691..9e4bc7f1b3448200ab4da08914eddaafe426c3e5 100644 (file)
@@ -128,7 +128,8 @@ TEST_F(EventHandlerTest, many_concurrent_producers) {
         runInThreadsAndWait(nproducers,
                             [&](size_t /* k */) {
                               for (size_t i = 0; i < writes / nproducers; ++i) {
-                                this_thread::sleep_for(chrono::milliseconds(1));
+                                this_thread::sleep_for(
+                                    std::chrono::milliseconds(1));
                                 efd_write(1);
                               }
                             });
@@ -175,7 +176,8 @@ TEST_F(EventHandlerTest, many_concurrent_consumers) {
         runInThreadsAndWait(nproducers,
                             [&](size_t /* k */) {
                               for (size_t i = 0; i < writes / nproducers; ++i) {
-                                this_thread::sleep_for(chrono::milliseconds(1));
+                                this_thread::sleep_for(
+                                    std::chrono::milliseconds(1));
                                 queue.blockingWrite(nullptr);
                                 efd_write(1);
                                 --writesRemaining;