-
Notifications
You must be signed in to change notification settings - Fork 73
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
[BUG] Unit test failure - testNextTimeToExecution FAILED #58
Comments
This is not a recently added change. Interesting to know why is this breaking the build for the 1.1 release and was not an issue earlier. |
Is this is a test bug or a product bug? New configuration, Is it possible this is a new locale or time zone consideration? Can you reproduce locally? This impacts the stability of 1.1.0 so we will need to get it resolved. Note, if this is a test bug, you could disable it to quickly get unblocked. |
@peternied How do you run test when you first discovered this problem? For me, if running test with locale param For why date is not parsed right, it's prob because this line, SimpleDateFormat should takes in the right locale. |
This was fixed in #61 by adding |
Describe the bug
org.opensearch.jobscheduler.spi.schedule.IntervalScheduleTests > testNextTimeToExecution FAILED
java.lang.AssertionError: expected:<PT33.55S> but was:<PT1M33.55S>
To Reproduce
Steps to reproduce the behavior:
./gradlew ':opensearch-job-scheduler-spi:test' --tests "org.opensearch.jobscheduler.spi.schedule.IntervalScheduleTests.testNextTimeToExecution" -Dtests.seed=44E256B30E637C7 -Dtests.security.manager=false -Dtests.locale=ja-JP-u-ca-japanese-x-lvariant-JP -Dtests.timezone=Pacific/Wallis
Resulting output
Reproduced on my local machine and on the build machine in arm64 environment.
The text was updated successfully, but these errors were encountered: