From 12a55d6f19342e5a5b8aa7b3ff871df3f7651435 Mon Sep 17 00:00:00 2001 From: Tonis Tiigi Date: Tue, 19 Mar 2019 17:07:24 -0700 Subject: [PATCH] ops: mark tests parallel Signed-off-by: Tonis Tiigi --- solver/llbsolver/ops/file_test.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/solver/llbsolver/ops/file_test.go b/solver/llbsolver/ops/file_test.go index 11d21153..dedb64c5 100644 --- a/solver/llbsolver/ops/file_test.go +++ b/solver/llbsolver/ops/file_test.go @@ -13,6 +13,7 @@ import ( ) func TestMkdirMkfile(t *testing.T) { + t.Parallel() fo := &pb.FileOp{ Actions: []*pb.FileAction{ { @@ -56,6 +57,7 @@ func TestMkdirMkfile(t *testing.T) { } func TestChownOpt(t *testing.T) { + t.Parallel() fo := &pb.FileOp{ Actions: []*pb.FileAction{ { @@ -125,6 +127,7 @@ func TestChownOpt(t *testing.T) { } func TestChownCopy(t *testing.T) { + t.Parallel() fo := &pb.FileOp{ Actions: []*pb.FileAction{ { @@ -185,6 +188,7 @@ func TestChownCopy(t *testing.T) { } func TestInvalidNoOutput(t *testing.T) { + t.Parallel() fo := &pb.FileOp{ Actions: []*pb.FileAction{ { @@ -210,6 +214,7 @@ func TestInvalidNoOutput(t *testing.T) { } func TestInvalidDuplicateOutput(t *testing.T) { + t.Parallel() fo := &pb.FileOp{ Actions: []*pb.FileAction{ { @@ -246,6 +251,7 @@ func TestInvalidDuplicateOutput(t *testing.T) { } func TestActionInvalidIndex(t *testing.T) { + t.Parallel() fo := &pb.FileOp{ Actions: []*pb.FileAction{ { @@ -271,6 +277,7 @@ func TestActionInvalidIndex(t *testing.T) { } func TestActionLoop(t *testing.T) { + t.Parallel() fo := &pb.FileOp{ Actions: []*pb.FileAction{ { @@ -307,6 +314,7 @@ func TestActionLoop(t *testing.T) { } func TestMultiOutput(t *testing.T) { + t.Parallel() fo := &pb.FileOp{ Actions: []*pb.FileAction{ { @@ -355,6 +363,7 @@ func TestMultiOutput(t *testing.T) { } func TestFileFromScratch(t *testing.T) { + t.Parallel() fo := &pb.FileOp{ Actions: []*pb.FileAction{ { @@ -398,6 +407,7 @@ func TestFileFromScratch(t *testing.T) { } func TestFileCopyInputSrc(t *testing.T) { + t.Parallel() fo := &pb.FileOp{ Actions: []*pb.FileAction{ { @@ -429,6 +439,7 @@ func TestFileCopyInputSrc(t *testing.T) { } func TestFileCopyInputRm(t *testing.T) { + t.Parallel() fo := &pb.FileOp{ Actions: []*pb.FileAction{ { @@ -484,6 +495,7 @@ func TestFileCopyInputRm(t *testing.T) { } func TestFileParallelActions(t *testing.T) { + t.Parallel() // two mkdirs from scratch copied over each other. mkdirs should happen in parallel fo := &pb.FileOp{ Actions: []*pb.FileAction{