-
Notifications
You must be signed in to change notification settings - Fork 80
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
Test fails, if TZ=UTC is not set #320
Comments
I just checked the AUR package's history to find out a bit more about this. (link) This is actually due to a bug in freezegun, and only occurs for some timezones. The AUR package sets I'll have to dig a bit more to try and find out what the issue with freezegun was though, cause I didn't link to an actual ticket. :( |
Actually, it doesn't look like an issue with freezegun. 😛 For this test, we spoof the current time, but depending on your timezone and the time, this might mean it's already "tomorrow" UTC. I'll have to think about this a bit more, but it can probably be fixed on our end. I'm actually tempted to add |
Hm, with todoman 3.5.0 I'm not experiencing this issue... but maybe it's flaky behavior? |
It depends on your actual timezone. For some tests we use things like "21hs UTC". If this is "today" in your local TZ, test work, if this is "tomorrow" it fails. That's why we override the TZ for tests; so as to be sure that the conditions are know ahead of time. |
Currently the following test fails, if not prefixed by an
export TZ=UTC
:Tests should not depend on a specific timezone to be set.
The text was updated successfully, but these errors were encountered: