summaryrefslogtreecommitdiffstats
path: root/storage/src
diff options
context:
space:
mode:
authorTor Brede Vekterli <vekterli@yahooinc.com>2023-05-05 14:08:32 +0000
committerTor Brede Vekterli <vekterli@yahooinc.com>2023-05-05 14:08:32 +0000
commit20271422ec6eea57d0fa56bfc32504f2182dbbef (patch)
treedba4d94c895e5dedc5c0065b1f0721d3c49f59f6 /storage/src
parent79db9acb359035ea18c677185269450b4fbe4b9e (diff)
Improve reply cardinality checking
Diffstat (limited to 'storage/src')
-rw-r--r--storage/src/tests/distributor/putoperationtest.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/storage/src/tests/distributor/putoperationtest.cpp b/storage/src/tests/distributor/putoperationtest.cpp
index c60c5932709..bc0118b6d5e 100644
--- a/storage/src/tests/distributor/putoperationtest.cpp
+++ b/storage/src/tests/distributor/putoperationtest.cpp
@@ -703,12 +703,12 @@ TEST_F(PutOperationTest, matching_condition_probe_sends_unconditional_puts_to_al
auto put_n0 = sent_put_command(3);
EXPECT_FALSE(put_n0->hasTestAndSetCondition());
- EXPECT_EQ("", _sender.getReplies(true)); // No reply yet; content node Puts must be replied to first.
-
// Ensure replies are no longer routed to condition checker
ASSERT_TRUE(_sender.replies().empty());
sendReply(2); // put to node 1
+ ASSERT_TRUE(_sender.replies().empty());
sendReply(3); // put to node 0
+ ASSERT_EQ(_sender.replies().size(), 1);
EXPECT_EQ("PutReply(id:test:testdoctype1::test, "
"BucketId(0x0000000000000000), "
"timestamp 100) ReturnCode(NONE)",