summaryrefslogtreecommitdiffstats
path: root/storage/src/tests/persistence/processalltest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'storage/src/tests/persistence/processalltest.cpp')
-rw-r--r--storage/src/tests/persistence/processalltest.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/storage/src/tests/persistence/processalltest.cpp b/storage/src/tests/persistence/processalltest.cpp
index e33e692b7d2..f7f52761609 100644
--- a/storage/src/tests/persistence/processalltest.cpp
+++ b/storage/src/tests/persistence/processalltest.cpp
@@ -29,7 +29,7 @@ TEST_F(ProcessAllHandlerTest, remove_location) {
"DocEntry(2345, 1, id:mail:testdoctype1:n=4:4008.html)\n",
dumpBucket(bucketId));
- auto reply = std::dynamic_pointer_cast<api::RemoveLocationReply>(tracker->getReplySP());
+ auto reply = std::dynamic_pointer_cast<api::RemoveLocationReply>(tracker->stealReplySP());
ASSERT_TRUE(reply);
EXPECT_EQ(2u, reply->documents_removed());
}
@@ -62,7 +62,7 @@ TEST_F(ProcessAllHandlerTest, remove_location_document_subset) {
"DocEntry(109, 0, Doc(id:mail:testdoctype1:n=4:6925.html))\n",
dumpBucket(bucketId));
- auto reply = std::dynamic_pointer_cast<api::RemoveLocationReply>(tracker->getReplySP());
+ auto reply = std::dynamic_pointer_cast<api::RemoveLocationReply>(tracker->stealReplySP());
ASSERT_TRUE(reply);
EXPECT_EQ(5u, reply->documents_removed());
}