Files
moby/integration-cli/docker_cli_cp_utils_test.go
Paweł Gronowski b571092d29 integration-cli: Deflake TestDockerCLICpSuite
The cp integration fixture only needs a stopped container with prepared
filesystem content.

Running the container detached and immediately calling `docker wait`
adds an extra daemon wait request that can race with short-lived fixture
containers and fail before the copy behavior is exercised.

Run the fixture command in the foreground and capture the resulting
container ID with a cidfile so the container remains available for later
cp assertions without the separate wait endpoint.

Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
2026-05-29 19:25:59 +02:00

7.3 KiB