diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2017-08-18 14:00:30 +0200 |
---|---|---|
committer | Henning Baldersheim <balder@yahoo-inc.com> | 2017-08-18 14:00:30 +0200 |
commit | 28c129658fa7084c8fcf4981fc57f71a41dc5362 (patch) | |
tree | f4a6d1bca3c5f7d885400adf0ba538abfe664873 /searchcore/src/tests/proton/documentmetastore | |
parent | 64809ac8367bb4c059f55a8595f47a323237b238 (diff) |
Hide the thread thread implementation a bit more.
Diffstat (limited to 'searchcore/src/tests/proton/documentmetastore')
-rw-r--r-- | searchcore/src/tests/proton/documentmetastore/documentmetastore_test.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/searchcore/src/tests/proton/documentmetastore/documentmetastore_test.cpp b/searchcore/src/tests/proton/documentmetastore/documentmetastore_test.cpp index bc17a698536..440e720a0b6 100644 --- a/searchcore/src/tests/proton/documentmetastore/documentmetastore_test.cpp +++ b/searchcore/src/tests/proton/documentmetastore/documentmetastore_test.cpp @@ -45,11 +45,11 @@ using storage::spi::Timestamp; using vespalib::GenerationHandler; using vespalib::GenerationHolder; using searchcorespi::IFlushTarget; +using namespace std::literals; namespace proton { -namespace -{ +namespace { static constexpr uint32_t numBucketBits = UINT32_C(20); static constexpr uint64_t timestampBias = UINT64_C(2000000000000); @@ -666,7 +666,7 @@ TEST("requireThatStatsAreUpdated") EXPECT_GREATER(lastAllocated, perGidUsed); EXPECT_GREATER(lastUsed, perGidUsed); - FastOS_Thread::Sleep(2200); + std::this_thread::sleep_for(2200ms); addGid(dms, gid1, bucketId1, time1); EXPECT_EQUAL(2u, dms.getStatus().getNumDocs()); EXPECT_EQUAL(2u, dms.getStatus().getNumValues()); |