]> git.proxmox.com Git - pmg-log-tracker.git/commit
tests: explicitly set timezone for testcases with unix timestamps
authorStoiko Ivanov <s.ivanov@proxmox.com>
Mon, 19 Jun 2023 18:40:48 +0000 (20:40 +0200)
committerStoiko Ivanov <s.ivanov@proxmox.com>
Mon, 26 Jun 2023 11:01:27 +0000 (13:01 +0200)
commitb154004956094d716fd0efb18bb42e6d024f7161
tree27b47a392fdeb459f0099a46dc896fc56133791c
parent5ed9f5caa58f116159d34b8b5d19feaeae81ab1d
tests: explicitly set timezone for testcases with unix timestamps

noticed when building with sbuild, which uses UTC as timezone:
Due to the parsing of traditional syslog time information (which does
not contain timezone information) the testcases passing
unix-timestamps as arguments failed.

Explicitly setting TZ to Europe/Vienna fixes the tests (and makes the
assumption visible)

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
tests/tests_after_queue.rs
tests/tests_before_queue.rs