diff options
Diffstat (limited to 'src/mongo/embedded/stitch_support/stitch_support_test.cpp')
-rw-r--r-- | src/mongo/embedded/stitch_support/stitch_support_test.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mongo/embedded/stitch_support/stitch_support_test.cpp b/src/mongo/embedded/stitch_support/stitch_support_test.cpp index 4192b11219c..c81ff5a8ced 100644 --- a/src/mongo/embedded/stitch_support/stitch_support_test.cpp +++ b/src/mongo/embedded/stitch_support/stitch_support_test.cpp @@ -542,7 +542,10 @@ TEST_F(StitchSupportTest, TestUpdateWithSetOnInsert) { } TEST_F(StitchSupportTest, TestUpdateProducesProperStatus) { - ASSERT_EQ("Unknown modifier: $bogus", checkUpdateStatus("{$bogus: {a: 2}}", "{a: 1}")); + ASSERT_EQ( + "Unknown modifier: $bogus. Expected a valid update modifier or pipeline-style update " + "specified as an array", + checkUpdateStatus("{$bogus: {a: 2}}", "{a: 1}")); ASSERT_EQ("Updating the path 'a' would create a conflict at 'a'", checkUpdateStatus("{$set: {a: 2, a: 3}}", "{a: 1}")); ASSERT_EQ("No array filter found for identifier 'i' in path 'a.$[i]'", |