Files
moby/integration-cli
Sebastiaan van Stijn a327a9f341 integration-cli: fix flaky TestRestartStoppedContainer
This test was failing frequently on Windows, waiting for the state
of the container to be "running" after restarting, however, this
would race because the command of the container was very short-lived;

    === Failed
    === FAIL: github.com/docker/docker/integration-cli TestDockerCLIRestartSuite/TestRestartStoppedContainer (37.00s)
        docker_cli_restart_test.go:42: assertion failed: error is not nil: condition ""true" == "false"" not true in time (20s)

Ironically, that check was added in 48ccdd46ae
to make the test less flaky.

This patch takes the approach from TestRestartRunningContainer, which had
similar issues on Windows that were addressed in bae22d167c

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2025-07-12 17:45:27 +02:00
..
2025-06-26 12:07:38 +00:00
2025-06-05 21:42:05 +00:00
2025-06-05 21:42:05 +00:00
2025-06-05 21:42:05 +00:00
2025-06-05 21:42:05 +00:00
2025-06-05 21:42:05 +00:00
2025-06-05 21:42:05 +00:00
2025-06-05 21:42:05 +00:00
2025-06-05 21:42:05 +00:00
2025-06-05 21:42:05 +00:00
2025-06-05 21:42:05 +00:00
2025-06-05 21:42:05 +00:00
2025-06-05 21:42:05 +00:00
2025-06-05 21:42:05 +00:00
2025-06-05 21:42:05 +00:00
2025-06-05 21:42:05 +00:00
2025-06-05 21:42:05 +00:00
2025-06-05 21:42:05 +00:00
2025-06-05 21:42:05 +00:00
2025-06-05 21:42:05 +00:00
2025-06-05 21:42:05 +00:00
2025-06-05 21:42:05 +00:00
2025-06-05 21:42:05 +00:00
2025-06-05 21:42:05 +00:00
2025-06-05 21:42:05 +00:00
2025-06-05 21:42:05 +00:00
2025-06-05 21:42:05 +00:00
2025-06-05 21:42:05 +00:00
2025-06-05 21:42:05 +00:00
2025-06-05 21:42:05 +00:00
2025-06-05 21:42:05 +00:00
2025-06-05 21:42:05 +00:00
2025-06-05 21:42:05 +00:00
2025-06-05 21:42:05 +00:00
2025-06-05 21:42:05 +00:00
2025-06-05 21:42:05 +00:00
2025-06-05 21:42:05 +00:00
2025-05-15 18:24:58 +02:00
2025-06-05 21:42:05 +00:00
2025-06-05 21:42:05 +00:00