aboutsummaryrefslogtreecommitdiffstats
path: root/storage/src/tests/storageapi/mbusprot
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2023-01-12 14:47:08 +0000
committerHenning Baldersheim <balder@yahoo-inc.com>2023-01-12 14:47:08 +0000
commit6bd81edbd0a66564569840b8f09981b9fbba4883 (patch)
tree6af6b3c9be3103216571a07a43aabcc704aa8031 /storage/src/tests/storageapi/mbusprot
parentf540fc8c1fd397316f54e9ceef8901535920d8e2 (diff)
We can only handle unconditional async messages in network thread.
Diffstat (limited to 'storage/src/tests/storageapi/mbusprot')
-rw-r--r--storage/src/tests/storageapi/mbusprot/storageprotocoltest.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/storage/src/tests/storageapi/mbusprot/storageprotocoltest.cpp b/storage/src/tests/storageapi/mbusprot/storageprotocoltest.cpp
index 09ee8e46a1a..d3036a2fad3 100644
--- a/storage/src/tests/storageapi/mbusprot/storageprotocoltest.cpp
+++ b/storage/src/tests/storageapi/mbusprot/storageprotocoltest.cpp
@@ -778,7 +778,9 @@ TEST_P(StorageProtocolTest, update_command_with_condition) {
auto update = std::make_shared<document::DocumentUpdate>(
_docMan.getTypeRepo(), *_testDoc->getDataType(), _testDoc->getId());
auto cmd = std::make_shared<UpdateCommand>(_bucket, update, 14);
+ EXPECT_FALSE(cmd->hasTestAndSetCondition());
cmd->setCondition(TestAndSetCondition(CONDITION_STRING));
+ EXPECT_TRUE(cmd->hasTestAndSetCondition());
auto cmd2 = copyCommand(cmd);
EXPECT_EQ(cmd->getCondition().getSelection(), cmd2->getCondition().getSelection());