-
Notifications
You must be signed in to change notification settings - Fork 25.6k
migrate tests from MissingIT to MissingAggregatorTests #53448
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
migrate tests from MissingIT to MissingAggregatorTests #53448
Conversation
Move the remaining tests for the missing aggregation into its AggregatorTestCase out of its integration test and remove the IT For elastic#42893
|
Pinging @elastic/es-analytics-geo (:Analytics/Aggregations) |
| } | ||
| }, | ||
| internalMissing -> { | ||
| (Consumer<InternalMissing>) internalMissing -> { |
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.
I'm not sure about this, but could you write (InternalMissing internalMissing) -> { instead of the cast?
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.
That is much better, thanks
| final IndexSearcher indexSearcher = newSearcher(indexReader, true, true); | ||
| final MappedFieldType[] fieldTypesArray = fieldTypes.toArray(new MappedFieldType[0]); | ||
| final InternalMissing missing; | ||
| final I missing; |
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.
Maybe call it result instead of missing because it isn't always InternalMissing.
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.
Good catch
nik9000
left a comment
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.
👍
Move the remaining tests for the missing aggregation into its AggregatorTestCase out of its integration test and remove the IT
Move the remaining tests for the missing aggregation into its AggregatorTestCase out of its integration test and remove the IT
Moves the remaining tests for the missing aggregation into its AggregatorTestCase out of its integration test and remove the IT. Figured this was worth doing while working on coverage in this area
For #42893