mirror of
https://github.com/docker/compose.git
synced 2025-07-23 13:45:00 +02:00
test: fix race in e2e build test
This was running two tests in parallel that would build/delete the same images. Run in serial instead since that's not safe. Signed-off-by: Milas Bowman <milas.bowman@docker.com>
This commit is contained in:
parent
72260d615d
commit
36625ed229
@ -257,7 +257,7 @@ func TestBuildImageDependencies(t *testing.T) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
t.Run("ClassicBuilder", func(t *testing.T) {
|
t.Run("ClassicBuilder", func(t *testing.T) {
|
||||||
cli := NewParallelCLI(t, WithEnv(
|
cli := NewCLI(t, WithEnv(
|
||||||
"DOCKER_BUILDKIT=0",
|
"DOCKER_BUILDKIT=0",
|
||||||
"COMPOSE_FILE=./fixtures/build-dependencies/compose.yaml",
|
"COMPOSE_FILE=./fixtures/build-dependencies/compose.yaml",
|
||||||
))
|
))
|
||||||
@ -265,7 +265,7 @@ func TestBuildImageDependencies(t *testing.T) {
|
|||||||
})
|
})
|
||||||
|
|
||||||
t.Run("BuildKit", func(t *testing.T) {
|
t.Run("BuildKit", func(t *testing.T) {
|
||||||
cli := NewParallelCLI(t, WithEnv(
|
cli := NewCLI(t, WithEnv(
|
||||||
"DOCKER_BUILDKIT=1",
|
"DOCKER_BUILDKIT=1",
|
||||||
"COMPOSE_FILE=./fixtures/build-dependencies/compose.yaml",
|
"COMPOSE_FILE=./fixtures/build-dependencies/compose.yaml",
|
||||||
))
|
))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user