mirror of
https://github.com/docker/docs.git
synced 2026-03-29 23:38:56 +07:00
This fixes the `docker events`-related tests as they have been failing due to clock skew between CI machine and test daemon on some other machine (even 1-2 seconds of diff causes races as we pass local time to --since/--until). If we're running in same host, we keep using time.Now(), otherwise we read the system time of the daemon from `/info` endpoint. Fixes pretty much all events-related tests on windows CI. Signed-off-by: Ahmet Alp Balkan <ahmetalpbalkan@gmail.com>
3.4 KiB
3.4 KiB