summaryrefslogtreecommitdiffstats
path: root/vespalib/src/tests/simple_thread_bundle/simple_thread_bundle_test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'vespalib/src/tests/simple_thread_bundle/simple_thread_bundle_test.cpp')
-rw-r--r--vespalib/src/tests/simple_thread_bundle/simple_thread_bundle_test.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/vespalib/src/tests/simple_thread_bundle/simple_thread_bundle_test.cpp b/vespalib/src/tests/simple_thread_bundle/simple_thread_bundle_test.cpp
index d3c562c583c..178a6c49fca 100644
--- a/vespalib/src/tests/simple_thread_bundle/simple_thread_bundle_test.cpp
+++ b/vespalib/src/tests/simple_thread_bundle/simple_thread_bundle_test.cpp
@@ -3,6 +3,7 @@
#include <vespa/vespalib/util/simple_thread_bundle.h>
#include <vespa/vespalib/util/exceptions.h>
#include <vespa/vespalib/util/box.h>
+#include <thread>
using namespace vespalib;
using namespace vespalib::fixed_thread_bundle;
@@ -112,9 +113,9 @@ TEST_MT_FFF("require that bundle run waits for all targets", 2, SimpleThreadBund
f2.check(Box<size_t>().add(1).add(1).add(1));
f3.done.countDown();
} else {
- EXPECT_FALSE(f3.done.await(20));
+ EXPECT_FALSE(f3.done.await(20ms));
f3.start.countDown();
- EXPECT_TRUE(f3.done.await(10000));
+ EXPECT_TRUE(f3.done.await(10s));
}
}