[CAL-3672] Timezone dependent unit tests fail when not on UTC
Opened this issue · 0 comments
zomars commented
Many of the European team folk wont face this issue. But the American team cannot consistently run unit tests locally. We get 4 or 5 failed tests. To replicate, try running tests with the MST timezone (the current TZ I have):
TZ=MST yarn test
If I try running from UTC then all errors go away:
TZ=UTC yarn test
IMO all testing should be time zone agnostic. If we're testing TZ changes we should mock and clean them up properly. But the machine where the tests are ran from should not interfere with the results.
From SyncLinear.com | CAL-3672