diff options
author | Moustafa Maher <m.maher@10gen.com> | 2021-01-24 03:36:26 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-01-26 00:47:49 +0000 |
commit | 593de2a7ed6e6717ed35112c63ab3ee38b825851 (patch) | |
tree | 93f5f275b08b4006f798c953a938186c3ec8a5a9 /src/mongo/db/pipeline/document_source_union_with_test.cpp | |
parent | 57aa9e6106905a8969af5b997e2b316ce2d71b62 (diff) | |
download | mongo-593de2a7ed6e6717ed35112c63ab3ee38b825851.tar.gz |
SERVER-54003 Validate BSON type to be array when parsing BSON object to Array
Diffstat (limited to 'src/mongo/db/pipeline/document_source_union_with_test.cpp')
-rw-r--r-- | src/mongo/db/pipeline/document_source_union_with_test.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/pipeline/document_source_union_with_test.cpp b/src/mongo/db/pipeline/document_source_union_with_test.cpp index 8fa361ce540..48068466824 100644 --- a/src/mongo/db/pipeline/document_source_union_with_test.cpp +++ b/src/mongo/db/pipeline/document_source_union_with_test.cpp @@ -282,7 +282,7 @@ TEST_F(DocumentSourceUnionWithTest, ParseErrors) { .firstElement(), getExpCtx()), AssertionException, - 10065); + ErrorCodes::TypeMismatch); ASSERT_THROWS_CODE(DocumentSourceUnionWith::createFromBson( BSON("$unionWith" << BSON("coll" << nsToUnionWith.coll() << "pipeline" << BSON("not" @@ -290,7 +290,7 @@ TEST_F(DocumentSourceUnionWithTest, ParseErrors) { .firstElement(), getExpCtx()), AssertionException, - 40422); + ErrorCodes::TypeMismatch); } TEST_F(DocumentSourceUnionWithTest, PropagatePauses) { |