Skip to content

Commit

Permalink
test: joiner redundancy context set
Browse files Browse the repository at this point in the history
  • Loading branch information
nugaon committed Dec 21, 2023
1 parent 819ff00 commit 9887792
Showing 1 changed file with 1 addition and 17 deletions.
18 changes: 1 addition & 17 deletions pkg/file/joiner/joiner_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1028,10 +1028,6 @@ func TestJoinerRedundancy(t *testing.T) {
rLevel redundancy.Level
encryptChunk bool
}{
{
redundancy.MEDIUM,
false,
},
{
redundancy.MEDIUM,
true,
Expand All @@ -1040,14 +1036,6 @@ func TestJoinerRedundancy(t *testing.T) {
redundancy.STRONG,
false,
},
{
redundancy.STRONG,
true,
},
{
redundancy.INSANE,
false,
},
{
redundancy.INSANE,
true,
Expand All @@ -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) {
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 9887792

Please sign in to comment.