mirror of https://github.com/docker/cli.git
8e2d63d5df
These tests were creating a stub container, using the current timestamp as created date. However, if CI was slow to run the test, `Less than a second ago` would change into `1 second ago`, causing the test to fail: --- FAIL: TestContainerListNoTrunc (0.00s) list_test.go:198: assertion failed: --- expected +++ actual @@ -1,4 +1,4 @@ -CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES -container_id busybox:latest "top" Less than a second ago Up 1 second c1 -container_id busybox:latest "top" Less than a second ago Up 1 second c2,foo/bar +CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES +container_id busybox:latest "top" 1 second ago Up 1 second c1 +container_id busybox:latest "top" 1 second ago Up 1 second c2,foo/bar This patch changes the "created" time of the container to be a minute ago. This will result in `About a minute ago`, with a margin of 1 minute. Signed-off-by: Sebastiaan van Stijn <github@gone.nl> |
||
---|---|---|
.. | ||
container-create-localhost-dns-ipv6.golden | ||
container-create-localhost-dns.golden | ||
container-create-oom-kill-true-without-memory-limit.golden | ||
container-create-oom-kill-without-memory-limit.golden | ||
container-list-format-name-name.golden | ||
container-list-format-with-arg.golden | ||
container-list-with-config-format.golden | ||
container-list-with-format.golden | ||
container-list-without-format-no-trunc.golden | ||
container-list-without-format.golden | ||
container-port-ipv4.golden | ||
container-port-ipv6-and-ipv4.golden | ||
container-port-ipv6.golden | ||
utf8.env | ||
utf16.env | ||
utf16be.env | ||
valid.env | ||
valid.label |