Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test(alerter): fix time and timezone issues in alerter tests
Fixes #1330 Some tests wouldn't pass locally if `TZ` was unset, or not set to to, e.g., UTC. One issue was the fallback to `"local"` if `TZ` was unset - this is a valid value internally within simplemonitor, but I don't think valid as a time zone. Also, having many tests use the local timezone creates some unpredictability in cases where there are hardcoded offsets, or where the test depends on the local timezone having a specific offset from UTC. Mock `TZ` as `UTC` or `MST` explicitly, and adjust existing tests based on offsets from that where needed. Fix / unskip some skipped tests
- Loading branch information