diff --git a/pkg/file/joiner/joiner_test.go b/pkg/file/joiner/joiner_test.go index 2ce3f5e7836..7144c6e7643 100644 --- a/pkg/file/joiner/joiner_test.go +++ b/pkg/file/joiner/joiner_test.go @@ -1113,8 +1113,7 @@ func TestJoinerRedundancy(t *testing.T) { strategyTimeout := 100 * time.Millisecond // all data can be read back readCheck := func(t *testing.T, expErr error) { - ctx, cancel := context.WithTimeout(context.Background(), 15*strategyTimeout) - defer cancel() + ctx := context.Background() strategyTimeoutStr := strategyTimeout.String() decodeTimeoutStr := (10 * strategyTimeout).String()