summaryrefslogtreecommitdiffstats
path: root/documentapi
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2019-08-16 11:24:45 +0000
committerHenning Baldersheim <balder@yahoo-inc.com>2019-08-16 11:24:45 +0000
commitc9d32bb41bad42853773a980bd3c2b5b07cb28ab (patch)
tree4bc98de90a8081387ae598bc1de9534a3de3d1bd /documentapi
parentb3c3429c28ec63a692770e45297b47c06537a0fa (diff)
Update tests
Diffstat (limited to 'documentapi')
-rw-r--r--documentapi/src/tests/policies/policies_test.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/documentapi/src/tests/policies/policies_test.cpp b/documentapi/src/tests/policies/policies_test.cpp
index 7c99165d449..6437ac470c6 100644
--- a/documentapi/src/tests/policies/policies_test.cpp
+++ b/documentapi/src/tests/policies/policies_test.cpp
@@ -561,7 +561,7 @@ Test::multipleGetRepliesAreMergedToFoundDocument()
.addRecipient("bar"));
frame.setMessage(make_unique<GetDocumentMessage>(DocumentId("id:ns:testdoc::yarn")));
std::vector<mbus::RoutingNode*> selected;
- EXPECT_TRUE(frame.select(selected, 2));
+ EXPECT_TRUE(frame.select(selected, 1));
for (uint32_t i = 0, len = selected.size(); i < len; ++i) {
Document::SP doc;
if (i == 0) {
@@ -612,14 +612,14 @@ Test::testDocumentRouteSelector()
.addRecipient("bar"));
frame.setMessage(make_unique<GetDocumentMessage>(DocumentId("id:ns:testdoc::"), 0));
- EXPECT_TRUE(frame.testSelect(StringList().add("foo").add("bar")));
+ EXPECT_TRUE(frame.testSelect(StringList().add("foo")));
mbus::Message::UP put = make_unique<PutDocumentMessage>(make_shared<Document>(*_docType, DocumentId("id:ns:testdoc::")));
frame.setMessage(std::move(put));
EXPECT_TRUE(frame.testSelect( StringList().add("foo")));
frame.setMessage(mbus::Message::UP(new RemoveDocumentMessage(DocumentId("id:ns:testdoc::"))));
- EXPECT_TRUE(frame.testSelect(StringList().add("foo").add("bar")));
+ EXPECT_TRUE(frame.testSelect(StringList().add("foo")));
frame.setMessage(make_unique<UpdateDocumentMessage>(
make_shared<DocumentUpdate>(*_repo, *_docType, DocumentId("id:ns:testdoc::"))));