DockerCLI/cli/command/container/testdata
Sebastiaan van Stijn 8e2d63d5df
Fix flaky TestContainerList tests
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>
2022-03-28 20:37:06 +02:00
..
container-create-localhost-dns-ipv6.golden Fix warnings not being printed on "create", only on "run" 2018-12-13 14:21:34 +01:00
container-create-localhost-dns.golden Fix warnings not being printed on "create", only on "run" 2018-12-13 14:21:34 +01:00
container-create-oom-kill-true-without-memory-limit.golden Fix warnings not being printed on "create", only on "run" 2018-12-13 14:21:34 +01:00
container-create-oom-kill-without-memory-limit.golden Fix warnings not being printed on "create", only on "run" 2018-12-13 14:21:34 +01:00
container-list-format-name-name.golden Add unit tests to docker container ls 2018-02-19 11:22:36 +01:00
container-list-format-with-arg.golden Add unit tests to docker container ls 2018-02-19 11:22:36 +01:00
container-list-with-config-format.golden Add unit tests to docker container ls 2018-02-19 11:22:36 +01:00
container-list-with-format.golden Add unit tests to docker container ls 2018-02-19 11:22:36 +01:00
container-list-without-format-no-trunc.golden Fix flaky TestContainerList tests 2022-03-28 20:37:06 +02:00
container-list-without-format.golden Fix flaky TestContainerList tests 2022-03-28 20:37:06 +02:00
container-port-ipv4.golden Use net.JoinHostPort() to fix formatting with IPv6 addresses 2021-04-20 11:05:24 +02:00
container-port-ipv6-and-ipv4.golden Use net.JoinHostPort() to fix formatting with IPv6 addresses 2021-04-20 11:05:24 +02:00
container-port-ipv6.golden Use net.JoinHostPort() to fix formatting with IPv6 addresses 2021-04-20 11:05:24 +02:00
utf8.env Import docker/docker/cli 2017-04-17 17:40:59 -04:00
utf16.env Import docker/docker/cli 2017-04-17 17:40:59 -04:00
utf16be.env Import docker/docker/cli 2017-04-17 17:40:59 -04:00
valid.env Import docker/docker/cli 2017-04-17 17:40:59 -04:00
valid.label Import docker/docker/cli 2017-04-17 17:40:59 -04:00