Skip to content

Tests: fix the container name conflict between handler tests - #362

Merged
mnapoli merged 1 commit into
4.xfrom
tests-container-race
Nov 23, 2026
Merged

mnapoli merged 1 commit into
4.xfrom
tests-container-race

Conversation

@mnapoli

@mnapoli mnapoli commented Nov 23, 2026

Copy link
Copy Markdown
Member

The handler tests reuse the container name test-php-XX. With --rm, docker stop returns before Docker removes the container, so the next docker run --name test-php-XX can fail:

docker: Error response from daemon: Conflict. The container name "/test-php-86" is already in use by container "5c7ca464…".

(seen on #352). docker rm -f stops and removes the container before returning.

With --rm, docker stop returns before the container is removed: the next docker run with the same name can fail with "The container name is already in use".
@mnapoli
mnapoli merged commit f563a21 into 4.x Nov 23, 2026
9 checks passed
@mnapoli
mnapoli deleted the tests-container-race branch November 23, 2026 12:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant