From 05071301e7c73aee899d1276932903785a2d7333 Mon Sep 17 00:00:00 2001 From: Henning Baldersheim Date: Mon, 27 May 2019 16:19:49 +0000 Subject: Reduce the length/cost of the test. --- messagebus/src/tests/messageordering/messageordering.cpp | 6 +++--- 1 file 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("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(str, true, commonMessageId); msg->getTrace().setLevel(9); //LOG(debug, "Sending message %p for %d", msg.get(), i); ASSERT_EQUAL(uint32_t(ErrorCode::NONE), -- cgit v1.2.3