From 9887792b004f68892c2b311fc59da2f3db9d780e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Viktor=20Levente=20T=C3=B3th?= Date: Thu, 21 Dec 2023 16:24:41 +0100 Subject: [PATCH] test: joiner redundancy context set --- pkg/file/joiner/joiner_test.go | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/pkg/file/joiner/joiner_test.go b/pkg/file/joiner/joiner_test.go index 8c65cab20ff..b845d7af0c6 100644 --- a/pkg/file/joiner/joiner_test.go +++ b/pkg/file/joiner/joiner_test.go @@ -1028,10 +1028,6 @@ func TestJoinerRedundancy(t *testing.T) { rLevel redundancy.Level encryptChunk bool }{ - { - redundancy.MEDIUM, - false, - }, { redundancy.MEDIUM, true, @@ -1040,14 +1036,6 @@ func TestJoinerRedundancy(t *testing.T) { redundancy.STRONG, false, }, - { - redundancy.STRONG, - true, - }, - { - redundancy.INSANE, - false, - }, { redundancy.INSANE, true, @@ -1056,10 +1044,6 @@ func TestJoinerRedundancy(t *testing.T) { redundancy.PARANOID, false, }, - { - redundancy.PARANOID, - true, - }, } { tc := tc t.Run(fmt.Sprintf("redundancy=%d encryption=%t", tc.rLevel, tc.encryptChunk), func(t *testing.T) { @@ -1115,7 +1099,7 @@ func TestJoinerRedundancy(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), 15*getter.StrategyTimeout) defer cancel() - ctx = getter.SetFetchTimeout(ctx, getter.StrategyTimeout.String()) + ctx = getter.SetParamsInContext(ctx, getter.RACE, false, (getter.StrategyTimeout).String()) joinReader, rootSpan, err := joiner.New(ctx, store, store, swarmAddr) if err != nil { t.Fatal(err)