summaryrefslogtreecommitdiffstats
path: root/messagebus
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2019-05-27 16:19:49 +0000
committerHenning Baldersheim <balder@yahoo-inc.com>2019-05-27 16:19:49 +0000
commit05071301e7c73aee899d1276932903785a2d7333 (patch)
tree26f631b9c559379f85ebf3f55ca992cb5111d428 /messagebus
parentc298a69ea9a8fe860ad1f97900a899ba72162504 (diff)
Reduce the length/cost of the test.
Diffstat (limited to 'messagebus')
-rw-r--r--messagebus/src/tests/messageordering/messageordering.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/messagebus/src/tests/messageordering/messageordering.cpp b/messagebus/src/tests/messageordering/messageordering.cpp
index 7ea31701127..d1b512bb1f1 100644
--- a/messagebus/src/tests/messageordering/messageordering.cpp
+++ b/messagebus/src/tests/messageordering/messageordering.cpp
@@ -54,7 +54,7 @@ public:
simpleMsg.getValue().c_str(),
expected.c_str());
- SimpleReply::UP sr(new SimpleReply("test reply"));
+ auto sr =std::make_unique<SimpleReply>("test reply");
msg->swapState(*sr);
if (simpleMsg.getValue() != expected) {
@@ -163,11 +163,11 @@ Test::Main()
int commonMessageId = 42;
// send messages on client
- const int messageCount = 10000;
+ const int messageCount = 5000;
for (int i = 0; i < messageCount; ++i) {
vespalib::string str(vespalib::make_string("%d", i));
//FastOS_Thread::Sleep(1);
- SimpleMessage::UP msg(new SimpleMessage(str, true, commonMessageId));
+ auto msg = std::make_unique<SimpleMessage>(str, true, commonMessageId);
msg->getTrace().setLevel(9);
//LOG(debug, "Sending message %p for %d", msg.get(), i);
ASSERT_EQUAL(uint32_t(ErrorCode::NONE),