summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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);