mirror of
https://github.com/TwiN/gatus.git
synced 2026-09-24 08:44:15 +00:00
* test(config): make HasLoadedConfigurationBeenModified deterministic The two subtests each slept a full second so a rewritten file's mod time (second precision) would advance past the load time. Advance the mod time explicitly with os.Chtimes instead, and give the directory subtest its own temp dir so the file subtest's future-dated config.yaml no longer leaks into it. Removes ~2s of wall-clock sleep and the coarse-clock dependence; the test is now deterministic. * test(config): trim comments to the forward-facing rationale --------- Co-authored-by: TwiN <twin@linux.com>