summaryrefslogtreecommitdiff
path: root/src/mongo/db/pipeline/parsed_add_fields_test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/pipeline/parsed_add_fields_test.cpp')
-rw-r--r--src/mongo/db/pipeline/parsed_add_fields_test.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/pipeline/parsed_add_fields_test.cpp b/src/mongo/db/pipeline/parsed_add_fields_test.cpp
index 9d52327b985..e720908b080 100644
--- a/src/mongo/db/pipeline/parsed_add_fields_test.cpp
+++ b/src/mongo/db/pipeline/parsed_add_fields_test.cpp
@@ -545,8 +545,8 @@ TEST(ParsedAddFieldsExecutionTest, AlwaysKeepsMetadataFromOriginalDoc) {
addition.parse(BSON("a" << true));
MutableDocument inputDocBuilder(Document{{"a", 1}});
- inputDocBuilder.setRandMetaField(1.0);
- inputDocBuilder.setTextScore(10.0);
+ inputDocBuilder.metadata().setRandVal(1.0);
+ inputDocBuilder.metadata().setTextScore(10.0);
Document inputDoc = inputDocBuilder.freeze();
auto result = addition.applyProjection(inputDoc);