summaryrefslogtreecommitdiffstats
path: root/searchcore/src/tests/proton/summaryengine/summaryengine.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'searchcore/src/tests/proton/summaryengine/summaryengine.cpp')
-rw-r--r--searchcore/src/tests/proton/summaryengine/summaryengine.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/searchcore/src/tests/proton/summaryengine/summaryengine.cpp b/searchcore/src/tests/proton/summaryengine/summaryengine.cpp
index 6660b7bfd55..ca4f2329c19 100644
--- a/searchcore/src/tests/proton/summaryengine/summaryengine.cpp
+++ b/searchcore/src/tests/proton/summaryengine/summaryengine.cpp
@@ -135,7 +135,8 @@ void assertSlime(const std::string &exp, const DocsumReply &reply) {
vespalib::Slime expSlime;
size_t used = JsonFormat::decode(exp, expSlime);
EXPECT_TRUE(used > 0);
- EXPECT_EQUAL(expSlime.get(), reply.root());
+ ASSERT_TRUE(reply.hasSlime());
+ EXPECT_EQUAL(expSlime, reply.slime());
}
TEST("requireThatGetDocsumsExecute") {
@@ -159,7 +160,7 @@ TEST("requireThatGetDocsumsExecute") {
DocsumRequest::Source request(createRequest());
DocsumReply::UP reply = engine.getDocsums(std::move(request), client);
EXPECT_TRUE(reply);
- EXPECT_FALSE(reply->_root);
+ EXPECT_FALSE(reply->hasSlime());
}
}