diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2019-12-03 14:24:41 +0000 |
---|---|---|
committer | Henning Baldersheim <balder@yahoo-inc.com> | 2019-12-04 18:15:16 +0000 |
commit | 8946dbea418f760e4f0a5cbe2eb2bcbcddd25032 (patch) | |
tree | fc254ea5dea29ddf6a395b8bcdcb8c7540d22238 /config/src/tests/frt | |
parent | 7700f411ea6f4a3e7c0599fae239ec84c18c0038 (diff) |
FastOS_THread::Sleep -> std::chrono::sleep_for
Renamed Timer -> ScheduledExecutor.
Do not include thread.h when not needed in header files.
Diffstat (limited to 'config/src/tests/frt')
-rw-r--r-- | config/src/tests/frt/frt.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/config/src/tests/frt/frt.cpp b/config/src/tests/frt/frt.cpp index ba8279a1999..28dea82bfe7 100644 --- a/config/src/tests/frt/frt.cpp +++ b/config/src/tests/frt/frt.cpp @@ -49,7 +49,7 @@ namespace { while (timer.elapsed().ms() < timeoutInMillis) { if (notified) break; - FastOS_Thread::Sleep(100); + std::this_thread::sleep_for(100ms); } return notified; } @@ -260,7 +260,7 @@ TEST_FF("require that request is config task is scheduled", SourceFixture(), FRT f1.conn.scheduler.CheckTasks(); if (f2.result.notified) break; - FastOS_Thread::Sleep(500); + std::this_thread::sleep_for(500ms); } ASSERT_TRUE(f2.result.notified); f2.src.close(); |