-
Notifications
You must be signed in to change notification settings - Fork 25k
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
[ML] Transform test fix for testCreateLatestFunction #66293
[ML] Transform test fix for testCreateLatestFunction #66293
Conversation
Pinging @elastic/ml-core (:ml/Transform) |
@elasticmachine update branch |
return new LatestConfig(randomList(1, 10, () -> randomAlphaOfLengthBetween(1, 10)), randomAlphaOfLengthBetween(1, 10)); | ||
return new LatestConfig( | ||
new ArrayList<>( | ||
new HashSet<>(randomList(1, 10, () -> randomAlphaOfLengthBetween(1, 10)) |
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.
nit, ESTestCase
has a method randomUnique
:
randomUnique(() -> randomAlphaOfLengthBetween(1, 10), randomIntBetween(1, 10))
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.
LGTM
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.
LGTM
the same problem exists in 2 other places:
@benwtrent can you fix those, too? |
…estCreateLatestFunction
…:benwtrent/elasticsearch into test-fix/ml-fix-testCreateLatestFunction
closes #66292