summaryrefslogtreecommitdiffstats
path: root/documentapi/src/tests/policies/policies_test.cpp
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2019-11-19 14:06:57 +0000
committerHenning Baldersheim <balder@yahoo-inc.com>2019-11-20 10:16:58 +0000
commit86a245e6d0751dec7e38d64c4ea21ea7f4308239 (patch)
tree108cb5b7a96f96a0db35e95b13bf08e7dadad4d4 /documentapi/src/tests/policies/policies_test.cpp
parent496e5cf57060fb068a9dc73ac7ff44333a60774e (diff)
Use timeouts typed with unit.
Diffstat (limited to 'documentapi/src/tests/policies/policies_test.cpp')
-rw-r--r--documentapi/src/tests/policies/policies_test.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/documentapi/src/tests/policies/policies_test.cpp b/documentapi/src/tests/policies/policies_test.cpp
index 508d0a961f5..93c5d51fef5 100644
--- a/documentapi/src/tests/policies/policies_test.cpp
+++ b/documentapi/src/tests/policies/policies_test.cpp
@@ -40,6 +40,8 @@ using namespace documentapi;
using vespalib::make_string;
using std::make_unique;
using std::make_shared;
+using namespace std::chrono_literals;
+
class Test : public vespalib::TestApp {
private:
@@ -308,7 +310,7 @@ Test::testExternSend()
mbus::TestServer src(mbus::Identity("src"), mbus::RoutingSpec(), local,
std::make_shared<DocumentProtocol>(_loadTypes, _repo));
mbus::Receptor sr;
- mbus::SourceSession::UP ss = src.mb.createSourceSession(sr, mbus::SourceSessionParams().setTimeout(60));
+ mbus::SourceSession::UP ss = src.mb.createSourceSession(sr, mbus::SourceSessionParams().setTimeout(60s));
mbus::Slobrok slobrok;
mbus::TestServer itr(mbus::Identity("itr"), mbus::RoutingSpec()
@@ -349,7 +351,7 @@ Test::testExternMultipleSlobroks()
mbus::TestServer src(mbus::Identity("src"), mbus::RoutingSpec(), local,
std::make_shared<DocumentProtocol>(_loadTypes, _repo));
mbus::Receptor sr;
- mbus::SourceSession::UP ss = src.mb.createSourceSession(sr, mbus::SourceSessionParams().setTimeout(60));
+ mbus::SourceSession::UP ss = src.mb.createSourceSession(sr, mbus::SourceSessionParams().setTimeout(60s));
string spec;
mbus::Receptor dr;