summaryrefslogtreecommitdiffstats
path: root/storage/src/tests/distributor/removeoperationtest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'storage/src/tests/distributor/removeoperationtest.cpp')
-rw-r--r--storage/src/tests/distributor/removeoperationtest.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/storage/src/tests/distributor/removeoperationtest.cpp b/storage/src/tests/distributor/removeoperationtest.cpp
index ed24b7271b8..b3104cae623 100644
--- a/storage/src/tests/distributor/removeoperationtest.cpp
+++ b/storage/src/tests/distributor/removeoperationtest.cpp
@@ -1,5 +1,6 @@
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
+#include <iomanip>
#include <tests/distributor/distributor_stripe_test_util.h>
#include <vespa/document/test/make_document_bucket.h>
#include <vespa/storage/distributor/top_level_distributor.h>
@@ -40,7 +41,7 @@ struct RemoveOperationTest : Test, DistributorStripeTestUtil {
msg,
metrics().removes);
- op->start(_sender);
+ op->start(_sender, framework::MilliSecTime(0));
}
void replyToMessage(RemoveOperation& callback,
@@ -54,7 +55,7 @@ struct RemoveOperationTest : Test, DistributorStripeTestUtil {
std::shared_ptr<api::StorageMessage> msg2 = _sender.command(index);
auto* removec = dynamic_cast<api::RemoveCommand*>(msg2.get());
std::unique_ptr<api::StorageReply> reply(removec->makeReply());
- auto* removeR = dynamic_cast<api::RemoveReply*>(reply.get());
+ auto* removeR = static_cast<api::RemoveReply*>(reply.get());
removeR->setOldTimestamp(oldTimestamp);
callback.onReceive(_sender, std::shared_ptr<api::StorageReply>(reply.release()));
}