diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2017-06-02 11:35:21 +0200 |
---|---|---|
committer | Henning Baldersheim <balder@yahoo-inc.com> | 2017-06-06 09:12:37 +0200 |
commit | 8e0c48091d4c944bec4a4c56ae49f25125262c82 (patch) | |
tree | f6d0d31e88b7db3f88fb11dc71437ea35db8e112 /config | |
parent | f54e69173d5bea16c9ee898246bc894260035631 (diff) |
Forward declare ByteBuffer and FastOS_Thread
Diffstat (limited to 'config')
-rw-r--r-- | config/src/tests/configholder/configholder.cpp | 2 | ||||
-rw-r--r-- | config/src/tests/subscription/subscription.cpp | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/config/src/tests/configholder/configholder.cpp b/config/src/tests/configholder/configholder.cpp index 8901ba65ad4..c103f86f6e9 100644 --- a/config/src/tests/configholder/configholder.cpp +++ b/config/src/tests/configholder/configholder.cpp @@ -61,7 +61,7 @@ TEST_MT_F("Require that wait is interrupted", 2, ConfigHolder) TEST_BARRIER(); } else { TEST_BARRIER(); - FastOS_Thread::Sleep(500); + std::this_thread::sleep_for(std::chrono::milliseconds(500)); f.interrupt(); TEST_BARRIER(); } diff --git a/config/src/tests/subscription/subscription.cpp b/config/src/tests/subscription/subscription.cpp index 5974279518a..52b9ec624ac 100644 --- a/config/src/tests/subscription/subscription.cpp +++ b/config/src/tests/subscription/subscription.cpp @@ -79,7 +79,7 @@ TEST_MT_F("requireThatNextUpdateReturnsWhenNotified", 2, SubscriptionFixture(Con ASSERT_TRUE(f1.sub.nextUpdate(2, 5000)); ASSERT_TRUE(timer.MilliSecsToNow() > 200.0); } else { - FastOS_Thread::Sleep(500); + std::this_thread::sleep_for(std::chrono::milliseconds(500)); f1.holder->handle(ConfigUpdate::UP(new ConfigUpdate(ConfigValue(), 1, 1))); } } @@ -94,7 +94,7 @@ TEST_MT_F("requireThatNextUpdateReturnsInterrupted", 2, SubscriptionFixture(Conf ASSERT_TRUE(f1.sub.nextUpdate(1, 5000)); ASSERT_TRUE(timer.MilliSecsToNow() > 300.0); } else { - FastOS_Thread::Sleep(500); + std::this_thread::sleep_for(std::chrono::milliseconds(500)); f1.sub.close(); } } |