]> git.proxmox.com Git - pmg-log-tracker.git/commit
change tests to use faketime
authorMira Limbeck <m.limbeck@proxmox.com>
Mon, 22 Mar 2021 13:06:18 +0000 (14:06 +0100)
committerStoiko Ivanov <s.ivanov@proxmox.com>
Mon, 22 Mar 2021 15:20:32 +0000 (16:20 +0100)
commitef4e4370a3a7a13eead0a5b3c4bed44f654f5b5b
treef61fbd12a449d6d4847d539833a8eaf33253aa5e
parent77b430e04a9b024f4271cd7b71c8c20015fe8c15
change tests to use faketime

We only have the month, day, hours, minutes and seconds available to us,
but not the year. Because of this we assume the logs are always relative
to the current year. This means when running the log tracker the CTIME
is calculated based on the current year and once a new year starts, all
old tests have to be updated to match the new year.

To work around this issue, use 'faketime' to set the time to 2020-12-31
23:59:59 as all tests assume 2020 as the year.

Signed-off-by: Mira Limbeck <m.limbeck@proxmox.com>
Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
debian/control
debian/debcargo.toml
tests/tests_after_queue.rs
tests/tests_before_queue.rs