diff options
Diffstat (limited to 'src/mongo/db/matcher')
-rw-r--r-- | src/mongo/db/matcher/expression_expr_test.cpp | 40 |
1 files changed, 2 insertions, 38 deletions
diff --git a/src/mongo/db/matcher/expression_expr_test.cpp b/src/mongo/db/matcher/expression_expr_test.cpp index 276c4ea1eb9..07e18df4660 100644 --- a/src/mongo/db/matcher/expression_expr_test.cpp +++ b/src/mongo/db/matcher/expression_expr_test.cpp @@ -832,48 +832,12 @@ TEST_F(ExprMatchTest, ExprRedactsCorrectly) { createMatcher(fromjson("{$expr: {$eq: [\"$a\", \"$$NOW\"]}}")); ASSERT_BSONOBJ_EQ_AUTO( // NOLINT - R"({ - "$and": [ - { - "HASH<a>": { - "$_internalExprEq": "?" - } - }, - { - "$expr": { - "$eq": [ - "$HASH<a>", - { - "$const": "?" - } - ] - } - } - ] - })", + R"({"$expr":{"$eq":["$HASH<a>","$$NOW"]}})", serialize(opts)); createMatcher(fromjson("{$expr: {$eq: [\"$a\", \"$$NOW\"]}}")); ASSERT_BSONOBJ_EQ_AUTO( // NOLINT - R"({ - "$and": [ - { - "HASH<a>": { - "$_internalExprEq": "?" - } - }, - { - "$expr": { - "$eq": [ - "$HASH<a>", - { - "$const": "?" - } - ] - } - } - ] - })", + R"({"$expr":{"$eq":["$HASH<a>","$$NOW"]}})", serialize(opts)); createMatcher(fromjson("{$expr: {$getField: {field: \"b\", input: {a: 1, b: 2}}}}")); |