summaryrefslogtreecommitdiff
path: root/src/mongo/db/storage/key_string_test.cpp
diff options
context:
space:
mode:
authorFaustoleyva54 <faustoleyva54@gmail.com>2020-06-23 15:52:39 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-06-26 16:15:47 +0000
commit29e009a731de1fed44b7b38c0d0780c9adc49e88 (patch)
tree57eb7b427cb82b7d5627ded7f50e5699eb6aeb50 /src/mongo/db/storage/key_string_test.cpp
parent33a643298e279b266362729e91481f159e0a7a69 (diff)
downloadmongo-29e009a731de1fed44b7b38c0d0780c9adc49e88.tar.gz
SERVER-44968 Remove useless BSONVersion enum class
Diffstat (limited to 'src/mongo/db/storage/key_string_test.cpp')
-rw-r--r--src/mongo/db/storage/key_string_test.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mongo/db/storage/key_string_test.cpp b/src/mongo/db/storage/key_string_test.cpp
index 7e0f802c164..831ac4f41fe 100644
--- a/src/mongo/db/storage/key_string_test.cpp
+++ b/src/mongo/db/storage/key_string_test.cpp
@@ -284,8 +284,7 @@ TEST_F(KeyStringBuilderTest, ExceededBSONDepth) {
nestedObj = BSON("" << nestedObj);
}
// This BSON object should not be valid.
- auto validateStatus =
- validateBSON(nestedObj.objdata(), nestedObj.objsize(), BSONVersion::kV1_1);
+ auto validateStatus = validateBSON(nestedObj.objdata(), nestedObj.objsize());
ASSERT_EQ(ErrorCodes::Overflow, validateStatus.code());
// Construct a KeyString from the invalid BSON, and confirm that it fails to convert back to