From 724479c6f83b3320c6053161fa9ce8b9914e6e00 Mon Sep 17 00:00:00 2001 From: notanatol Date: Fri, 12 Jan 2024 15:32:57 +0200 Subject: [PATCH] fix: run subtests in parallel --- pkg/file/joiner/joiner_test.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkg/file/joiner/joiner_test.go b/pkg/file/joiner/joiner_test.go index aceef3234c9..d5cbf9e1bd5 100644 --- a/pkg/file/joiner/joiner_test.go +++ b/pkg/file/joiner/joiner_test.go @@ -1226,6 +1226,7 @@ func TestJoinerRedundancyMultilevel(t *testing.T) { getter.StrategyTimeout = 100 * time.Millisecond test := func(t *testing.T, rLevel redundancy.Level, encrypt bool, size int) { + t.Helper() store := mockstorer.NewForgettingStore(inmemchunkstore.New()) testutil.CleanupCloser(t, store) seed, err := pseudorand.NewSeed() @@ -1339,6 +1340,7 @@ func TestJoinerRedundancyMultilevel(t *testing.T) { if r2level[rLevel] != levels || encrypt != encryptChunk[rLevel] { t.Skip("skipping to save time") } + t.Parallel() test(t, rLevel, encrypt, chunkCnt) }) switch levels { @@ -1350,6 +1352,7 @@ func TestJoinerRedundancyMultilevel(t *testing.T) { continue } t.Run(fmt.Sprintf("encrypt=%v levels=%d chunks=%d full", encrypt, levels, chunkCnt), func(t *testing.T) { + t.Parallel() test(t, rLevel, encrypt, chunkCnt) }) }