summaryrefslogtreecommitdiffstats
path: root/staging_vespalib
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2021-01-07 16:24:46 +0000
committerHenning Baldersheim <balder@yahoo-inc.com>2021-01-07 16:24:46 +0000
commit02da389f915eb4d3d7168e1ff69dabee63604e3d (patch)
tree09e75530ca827bdb1e75662dd39b3b54603ebe6e /staging_vespalib
parent1eb945cdfa2b1525bd175fbd685b3915dc49b44f (diff)
Waiting 1s should be sufficient
Diffstat (limited to 'staging_vespalib')
-rw-r--r--staging_vespalib/src/tests/clock/clock_test.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/staging_vespalib/src/tests/clock/clock_test.cpp b/staging_vespalib/src/tests/clock/clock_test.cpp
index 4a06787fce5..4ff05355818 100644
--- a/staging_vespalib/src/tests/clock/clock_test.cpp
+++ b/staging_vespalib/src/tests/clock/clock_test.cpp
@@ -15,10 +15,10 @@ TEST("Test that clock is ticking forward") {
FastOS_ThreadPool pool(0x10000);
ASSERT_TRUE(pool.NewThread(clock.getRunnable(), nullptr) != nullptr);
steady_time start = clock.getTimeNS();
- std::this_thread::sleep_for(5s);
+ std::this_thread::sleep_for(1s);
steady_time stop = clock.getTimeNS();
EXPECT_TRUE(stop > start);
- std::this_thread::sleep_for(6s);
+ std::this_thread::sleep_for(1s);
clock.stop();
steady_time stop2 = clock.getTimeNS();
EXPECT_TRUE(stop2 > stop);