summaryrefslogtreecommitdiffstats
path: root/vespalib/src/tests/portal/reactor/reactor_test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'vespalib/src/tests/portal/reactor/reactor_test.cpp')
-rw-r--r--vespalib/src/tests/portal/reactor/reactor_test.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/vespalib/src/tests/portal/reactor/reactor_test.cpp b/vespalib/src/tests/portal/reactor/reactor_test.cpp
index b0abc2c9e46..b14bb1dbd3f 100644
--- a/vespalib/src/tests/portal/reactor/reactor_test.cpp
+++ b/vespalib/src/tests/portal/reactor/reactor_test.cpp
@@ -1,14 +1,11 @@
// Copyright 2018 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include <vespa/vespalib/testkit/test_kit.h>
+#include <vespa/vespalib/testkit/time_bomb.h>
#include <vespa/vespalib/net/socket_handle.h>
#include <vespa/vespalib/net/socket_utils.h>
#include <vespa/vespalib/portal/reactor.h>
#include <vespa/vespalib/util/gate.h>
-
-#include <thread>
-#include <chrono>
-
#include <sys/types.h>
#include <sys/socket.h>
#include <fcntl.h>
@@ -150,9 +147,9 @@ TEST_MT_FFFF("require that reactor token destruction waits for io event handling
if (thread_id == 0) {
f2.enter_callback.await();
TEST_BARRIER(); // #1
- EXPECT_TRUE(!f3.await(20));
+ EXPECT_TRUE(!f3.await(20ms));
f2.exit_callback.countDown();
- EXPECT_TRUE(f3.await(60000));
+ EXPECT_TRUE(f3.await(60s));
} else {
TEST_BARRIER(); // #1
f2.token.reset();