summaryrefslogtreecommitdiff
path: root/src/mongo/embedded/stitch_support/stitch_support_test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/embedded/stitch_support/stitch_support_test.cpp')
-rw-r--r--src/mongo/embedded/stitch_support/stitch_support_test.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mongo/embedded/stitch_support/stitch_support_test.cpp b/src/mongo/embedded/stitch_support/stitch_support_test.cpp
index 21cd1229fc2..c336cdc55b1 100644
--- a/src/mongo/embedded/stitch_support/stitch_support_test.cpp
+++ b/src/mongo/embedded/stitch_support/stitch_support_test.cpp
@@ -433,8 +433,9 @@ TEST_F(StitchSupportTest, CheckProjectionProducesExpectedStatus) {
checkProjectionStatus("{'a.$.c': 1}", "{_id: 1, a: [{b: 2, c: 100}, {b: 1, c: 200}]}"));
ASSERT_EQ("$textScore, $sortKey, $recordId and $geoNear are not allowed in this context",
checkProjectionStatus("{a: {$meta: 'textScore'}}", "{_id: 1, a: 100, b: 200}"));
- ASSERT_EQ("Unsupported projection option: a: { b: 0 }",
- checkProjectionStatus("{a: {b: 0}}", "{_id: 1, a: {b: 200}}"));
+
+ ASSERT_EQ("Cannot do inclusion on field c in exclusion projection",
+ checkProjectionStatus("{a: 0, c: 1}", "{_id: 1, a: {b: 200}}"));
}
TEST_F(StitchSupportTest, CheckProjectionCollatesRespectfully) {