summaryrefslogtreecommitdiff
path: root/src/mongo/db/update
diff options
context:
space:
mode:
authorEric Cox <eric.cox@mongodb.com>2021-05-18 21:58:58 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2021-06-07 13:53:48 +0000
commit9dc70d39da791265f9fb78ba7f9742403af9676a (patch)
treee6205561d2ef02b08b225bfbeafe9e8ad3cea265 /src/mongo/db/update
parent2d3200ce27c7a71b1f9157e273596e78ec07db97 (diff)
downloadmongo-9dc70d39da791265f9fb78ba7f9742403af9676a.tar.gz
SERVER-56265 Cleanly fail unsupported queries on timeseries collections
Diffstat (limited to 'src/mongo/db/update')
-rw-r--r--src/mongo/db/update/pull_node_test.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/update/pull_node_test.cpp b/src/mongo/db/update/pull_node_test.cpp
index 611cc21de91..34f3c31f34a 100644
--- a/src/mongo/db/update/pull_node_test.cpp
+++ b/src/mongo/db/update/pull_node_test.cpp
@@ -90,7 +90,7 @@ TEST(PullNodeTest, InitWithGeoNearElemFails) {
PullNode node;
auto status = node.init(update["$pull"]["a"], expCtx);
ASSERT_NOT_OK(status);
- ASSERT_EQUALS(ErrorCodes::BadValue, status);
+ ASSERT_EQUALS(5626500, status.code());
}
TEST(PullNodeTest, InitWithGeoNearObjectFails) {
@@ -100,7 +100,7 @@ TEST(PullNodeTest, InitWithGeoNearObjectFails) {
PullNode node;
auto status = node.init(update["$pull"]["a"], expCtx);
ASSERT_NOT_OK(status);
- ASSERT_EQUALS(ErrorCodes::BadValue, status);
+ ASSERT_EQUALS(5626500, status.code());
}
TEST(PullNodeTest, InitWithExprElemFails) {