summaryrefslogtreecommitdiff
path: root/src/mongo/db/matcher/expression_parser_text_test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/matcher/expression_parser_text_test.cpp')
-rw-r--r--src/mongo/db/matcher/expression_parser_text_test.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mongo/db/matcher/expression_parser_text_test.cpp b/src/mongo/db/matcher/expression_parser_text_test.cpp
index fe5eaebc0f7..33ab47af773 100644
--- a/src/mongo/db/matcher/expression_parser_text_test.cpp
+++ b/src/mongo/db/matcher/expression_parser_text_test.cpp
@@ -47,7 +47,7 @@ TEST(MatchExpressionParserText, Basic) {
ASSERT_EQUALS(MatchExpression::TEXT, result.getValue()->matchType());
std::unique_ptr<TextMatchExpression> textExp(
- static_cast<TextMatchExpression*>(result.getValue()));
+ static_cast<TextMatchExpression*>(result.getValue().release()));
ASSERT_EQUALS(textExp->getQuery(), "awesome");
ASSERT_EQUALS(textExp->getLanguage(), "english");
ASSERT_EQUALS(textExp->getCaseSensitive(), fts::FTSQuery::caseSensitiveDefault);
@@ -68,7 +68,7 @@ TEST(MatchExpressionParserText, CaseSensitiveTrue) {
ASSERT_EQUALS(MatchExpression::TEXT, result.getValue()->matchType());
std::unique_ptr<TextMatchExpression> textExp(
- static_cast<TextMatchExpression*>(result.getValue()));
+ static_cast<TextMatchExpression*>(result.getValue().release()));
ASSERT_EQUALS(textExp->getCaseSensitive(), true);
}
@@ -80,7 +80,7 @@ TEST(MatchExpressionParserText, CaseSensitiveFalse) {
ASSERT_EQUALS(MatchExpression::TEXT, result.getValue()->matchType());
std::unique_ptr<TextMatchExpression> textExp(
- static_cast<TextMatchExpression*>(result.getValue()));
+ static_cast<TextMatchExpression*>(result.getValue().release()));
ASSERT_EQUALS(textExp->getCaseSensitive(), false);
}