ops: mark tests parallel

Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
docker-19.03
Tonis Tiigi 2019-03-19 17:07:24 -07:00
parent 17d78abc12
commit 12a55d6f19
1 changed files with 12 additions and 0 deletions

View File

@ -13,6 +13,7 @@ import (
) )
func TestMkdirMkfile(t *testing.T) { func TestMkdirMkfile(t *testing.T) {
t.Parallel()
fo := &pb.FileOp{ fo := &pb.FileOp{
Actions: []*pb.FileAction{ Actions: []*pb.FileAction{
{ {
@ -56,6 +57,7 @@ func TestMkdirMkfile(t *testing.T) {
} }
func TestChownOpt(t *testing.T) { func TestChownOpt(t *testing.T) {
t.Parallel()
fo := &pb.FileOp{ fo := &pb.FileOp{
Actions: []*pb.FileAction{ Actions: []*pb.FileAction{
{ {
@ -125,6 +127,7 @@ func TestChownOpt(t *testing.T) {
} }
func TestChownCopy(t *testing.T) { func TestChownCopy(t *testing.T) {
t.Parallel()
fo := &pb.FileOp{ fo := &pb.FileOp{
Actions: []*pb.FileAction{ Actions: []*pb.FileAction{
{ {
@ -185,6 +188,7 @@ func TestChownCopy(t *testing.T) {
} }
func TestInvalidNoOutput(t *testing.T) { func TestInvalidNoOutput(t *testing.T) {
t.Parallel()
fo := &pb.FileOp{ fo := &pb.FileOp{
Actions: []*pb.FileAction{ Actions: []*pb.FileAction{
{ {
@ -210,6 +214,7 @@ func TestInvalidNoOutput(t *testing.T) {
} }
func TestInvalidDuplicateOutput(t *testing.T) { func TestInvalidDuplicateOutput(t *testing.T) {
t.Parallel()
fo := &pb.FileOp{ fo := &pb.FileOp{
Actions: []*pb.FileAction{ Actions: []*pb.FileAction{
{ {
@ -246,6 +251,7 @@ func TestInvalidDuplicateOutput(t *testing.T) {
} }
func TestActionInvalidIndex(t *testing.T) { func TestActionInvalidIndex(t *testing.T) {
t.Parallel()
fo := &pb.FileOp{ fo := &pb.FileOp{
Actions: []*pb.FileAction{ Actions: []*pb.FileAction{
{ {
@ -271,6 +277,7 @@ func TestActionInvalidIndex(t *testing.T) {
} }
func TestActionLoop(t *testing.T) { func TestActionLoop(t *testing.T) {
t.Parallel()
fo := &pb.FileOp{ fo := &pb.FileOp{
Actions: []*pb.FileAction{ Actions: []*pb.FileAction{
{ {
@ -307,6 +314,7 @@ func TestActionLoop(t *testing.T) {
} }
func TestMultiOutput(t *testing.T) { func TestMultiOutput(t *testing.T) {
t.Parallel()
fo := &pb.FileOp{ fo := &pb.FileOp{
Actions: []*pb.FileAction{ Actions: []*pb.FileAction{
{ {
@ -355,6 +363,7 @@ func TestMultiOutput(t *testing.T) {
} }
func TestFileFromScratch(t *testing.T) { func TestFileFromScratch(t *testing.T) {
t.Parallel()
fo := &pb.FileOp{ fo := &pb.FileOp{
Actions: []*pb.FileAction{ Actions: []*pb.FileAction{
{ {
@ -398,6 +407,7 @@ func TestFileFromScratch(t *testing.T) {
} }
func TestFileCopyInputSrc(t *testing.T) { func TestFileCopyInputSrc(t *testing.T) {
t.Parallel()
fo := &pb.FileOp{ fo := &pb.FileOp{
Actions: []*pb.FileAction{ Actions: []*pb.FileAction{
{ {
@ -429,6 +439,7 @@ func TestFileCopyInputSrc(t *testing.T) {
} }
func TestFileCopyInputRm(t *testing.T) { func TestFileCopyInputRm(t *testing.T) {
t.Parallel()
fo := &pb.FileOp{ fo := &pb.FileOp{
Actions: []*pb.FileAction{ Actions: []*pb.FileAction{
{ {
@ -484,6 +495,7 @@ func TestFileCopyInputRm(t *testing.T) {
} }
func TestFileParallelActions(t *testing.T) { func TestFileParallelActions(t *testing.T) {
t.Parallel()
// two mkdirs from scratch copied over each other. mkdirs should happen in parallel // two mkdirs from scratch copied over each other. mkdirs should happen in parallel
fo := &pb.FileOp{ fo := &pb.FileOp{
Actions: []*pb.FileAction{ Actions: []*pb.FileAction{