-
Notifications
You must be signed in to change notification settings - Fork 24.4k
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
Fix typo in date format #26503
Fix typo in date format #26503
Conversation
Since this is a community submitted pull request, a Jenkins build has not been kicked off automatically. Can an Elastic organization member please verify the contents of this patch and then kick off a build manually? |
@liketic Thanks for the PR. Would you mind adding a test to avoid regressions in the future? |
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.
Thanks, it looks good to me, I just left a minor comment about using expectThrows instead of try/fail/catch/assert for testing.
fail("Pattern: " + format); | ||
} catch (IllegalArgumentException e) { | ||
assertThat(e.getMessage().contains("Invalid format: [" + format + "]"), equalTo(true)); | ||
} |
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.
can you use expectThrows
instead?
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.
Yes, thanks.
5d66b7c
to
93643ff
Compare
Fix #26500