-
Notifications
You must be signed in to change notification settings - Fork 11
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
Tests assume time zone is GMT #7
Comments
Interesting, we changed to BST in the UK and now I get a similar issue - unit tests failing because the times are an hour out... It looks like something's amiss with ExpressionFunctions.roundToDay(...) |
I've issued a fix that may relate to this, you may find you don't need to set the TZ manually now to get the tests to pass. |
I'm still encountering this issue. Here's the specific failure I'm seeing, in the EDT timezone:
The root problem is that the export data rightly contain local date times for host system's timezone. IntegrationTest.java relies on comparing baseline committed vs generated exports. So, unless the timezone is somehow set while the tests are run, they will fail unless the test host's system timezone matches with the host on which the baseline was generated. Create pull request #14 with a fix. |
I'm in the PST timezone. If I run the tests normally, I get:
But if I run with
I get:
A number of your tests make assumptions that they are being run in the GMT time zone. I suggest explictly setting the timezone in your tests or changing your documentation.
The text was updated successfully, but these errors were encountered: