summaryrefslogtreecommitdiff
path: root/src/mongo/db/update/path_support_test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/update/path_support_test.cpp')
-rw-r--r--src/mongo/db/update/path_support_test.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mongo/db/update/path_support_test.cpp b/src/mongo/db/update/path_support_test.cpp
index 3de5e8eff00..cb397c01bd1 100644
--- a/src/mongo/db/update/path_support_test.cpp
+++ b/src/mongo/db/update/path_support_test.cpp
@@ -48,6 +48,7 @@
#include "mongo/db/matcher/expression.h"
#include "mongo/db/matcher/expression_leaf.h"
#include "mongo/db/matcher/expression_parser.h"
+#include "mongo/db/pipeline/expression_context_for_test.h"
#include "mongo/stdx/memory.h"
#include "mongo/unittest/unittest.h"
#include "mongo/util/mongoutils/str.h"
@@ -588,8 +589,8 @@ TEST_F(ArrayDoc, CreatePathAtFailsIfElemFoundIsArrayAndIdxFoundFieldIsNonNumeric
//
static MatchExpression* makeExpr(const BSONObj& exprBSON) {
- const CollatorInterface* collator = nullptr;
- return MatchExpressionParser::parse(exprBSON, collator).getValue().release();
+ boost::intrusive_ptr<ExpressionContextForTest> expCtx(new ExpressionContextForTest());
+ return MatchExpressionParser::parse(exprBSON, std::move(expCtx)).getValue().release();
}
static void assertContains(const EqualityMatches& equalities, const BSONObj& wrapped) {