summaryrefslogtreecommitdiffstats
path: root/storageapi
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2022-03-29 16:00:32 +0200
committerGitHub <noreply@github.com>2022-03-29 16:00:32 +0200
commitdc45403e426237d940544b4929f5e9f31c259d0e (patch)
tree9e63da857906708a587b0050a679ce2a72719d28 /storageapi
parent55a68fe347b0b551cd3421d014fabcf3be4f525d (diff)
parent2d197543db1491993c194c29be88a5ad33c383fb (diff)
Merge pull request #21856 from vespa-engine/balder/avoid-identifiable-for-valueupdate-2
Balder/avoid identifiable for valueupdate 2
Diffstat (limited to 'storageapi')
-rw-r--r--storageapi/src/tests/mbusprot/storageprotocoltest.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/storageapi/src/tests/mbusprot/storageprotocoltest.cpp b/storageapi/src/tests/mbusprot/storageprotocoltest.cpp
index 1ab5c2398c9..c130e433285 100644
--- a/storageapi/src/tests/mbusprot/storageprotocoltest.cpp
+++ b/storageapi/src/tests/mbusprot/storageprotocoltest.cpp
@@ -248,9 +248,8 @@ TEST_P(StorageProtocolTest, response_metadata_is_propagated) {
}
TEST_P(StorageProtocolTest, update) {
- auto update = std::make_shared<document::DocumentUpdate>(
- _docMan.getTypeRepo(), *_testDoc->getDataType(), _testDoc->getId());
- update->addUpdate(FieldUpdate(_testDoc->getField("headerval")).addUpdate(std::make_unique<AssignValueUpdate>(IntFieldValue(17))));
+ auto update = std::make_shared<document::DocumentUpdate>(_docMan.getTypeRepo(), *_testDoc->getDataType(), _testDoc->getId());
+ update->addUpdate(FieldUpdate(_testDoc->getField("headerval")).addUpdate(std::make_unique<AssignValueUpdate>(std::make_unique<IntFieldValue>(17))));
update->addFieldPathUpdate(std::make_unique<RemoveFieldPathUpdate>("headerval", "testdoctype1.headerval > 0"));