diff options
author | Pawel Terlecki <pawel.terlecki@mongodb.com> | 2019-04-15 11:00:17 -0400 |
---|---|---|
committer | Pawel Terlecki <pawel.terlecki@mongodb.com> | 2019-04-15 11:00:17 -0400 |
commit | 03171bed9efdf0d25054fcddd936ad04db53f4aa (patch) | |
tree | 0a8840dd9afede5fa8aaf0993961d0b8a7f585bb /src/mongo/db/matcher | |
parent | 851225aa36e45a17469946ef3c4e1f5a4e790129 (diff) | |
download | mongo-03171bed9efdf0d25054fcddd936ad04db53f4aa.tar.gz |
SERVER-39492 Fix encrypt_schema_types_test
Diffstat (limited to 'src/mongo/db/matcher')
-rw-r--r-- | src/mongo/db/matcher/schema/encrypt_schema_types_test.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mongo/db/matcher/schema/encrypt_schema_types_test.cpp b/src/mongo/db/matcher/schema/encrypt_schema_types_test.cpp index ac33d52408c..1eb0d6ee6a8 100644 --- a/src/mongo/db/matcher/schema/encrypt_schema_types_test.cpp +++ b/src/mongo/db/matcher/schema/encrypt_schema_types_test.cpp @@ -99,7 +99,9 @@ TEST(EncryptSchemaTest, ParseFullEncryptObjectFromBSON) { << "/pointer"); IDLParserErrorContext ctxt("encrypt"); auto encryptInfo = EncryptionInfo::parse(ctxt, encryptInfoBSON); - ASSERT_EQ(encryptInfo.getBsonType().get(), "int"); + MatcherTypeSet resultMatcherSet; + resultMatcherSet.bsonTypes.insert(BSONType::NumberInt); + ASSERT_TRUE(encryptInfo.getBsonType() == BSONTypeSet(resultMatcherSet)); ASSERT_TRUE(encryptInfo.getAlgorithm().get() == FleAlgorithmEnum::kDeterministic); EncryptSchemaKeyId keyid = encryptInfo.getKeyId().get(); ASSERT_TRUE(keyid.type() == EncryptSchemaKeyId::Type::kJSONPointer); |