浏览代码

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 <[email protected]>
Milas Bowman 2 年之前
父节点
当前提交
36625ed229
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      pkg/e2e/build_test.go

+ 2 - 2
pkg/e2e/build_test.go

@@ -257,7 +257,7 @@ func TestBuildImageDependencies(t *testing.T) {
 	}
 
 	t.Run("ClassicBuilder", func(t *testing.T) {
-		cli := NewParallelCLI(t, WithEnv(
+		cli := NewCLI(t, WithEnv(
 			"DOCKER_BUILDKIT=0",
 			"COMPOSE_FILE=./fixtures/build-dependencies/compose.yaml",
 		))
@@ -265,7 +265,7 @@ func TestBuildImageDependencies(t *testing.T) {
 	})
 
 	t.Run("BuildKit", func(t *testing.T) {
-		cli := NewParallelCLI(t, WithEnv(
+		cli := NewCLI(t, WithEnv(
 			"DOCKER_BUILDKIT=1",
 			"COMPOSE_FILE=./fixtures/build-dependencies/compose.yaml",
 		))