-
Notifications
You must be signed in to change notification settings - Fork 410
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove duplicated $expr
tests
#3255
Conversation
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #3255 +/- ##
==========================================
- Coverage 75.26% 75.16% -0.11%
==========================================
Files 400 400
Lines 22386 22386
==========================================
- Hits 16849 16826 -23
- Misses 4563 4582 +19
- Partials 974 978 +4 see 7 files with indirect coverage changes
Flags with carried forward coverage won't be shown. Click here to find out more. |
"github.com/FerretDB/FerretDB/integration/shareddata" | ||
) | ||
|
||
func TestAggregateMatchExprErrors(tt *testing.T) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -29,124 +29,11 @@ func TestAggregateCompatMatchExpr(t *testing.T) { | |||
bson.D{{"$match", bson.D{{"$expr", "$v"}}}}, | |||
}, | |||
}, | |||
"ExpressionDotNotation": { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice finding!
Description
Compat tests and integration tests for
$expr
in$match
stage behaves exactly likefind
command with$expr
. Let's remove duplicated tests, they are covered by https://github.com/FerretDB/FerretDB/blob/main/integration/query_evaluation_compat_test.go#L308 and https://github.com/FerretDB/FerretDB/blob/main/integration/query_evaluation_test.go#L93We do not want unnecessary tests which slows down our integration tests, see #3163 (comment)
Readiness checklist
task all
, and it passed.@FerretDB/core
), Milestone (Next
), Labels, Project and project's Sprint fields.