Skip to content

Commit 1eeea0b

Browse files
committed
fix: test runner
1 parent 51563ef commit 1eeea0b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/testshared/runner.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -372,12 +372,12 @@ func InstallGolangciLint(tb testing.TB) string {
372372

373373
// TODO(ldez) remove when we will run go1.23 on the CI.
374374
func forceDisableUnsupportedLinters(args []string) []string {
375+
result := slices.Clone(args)
376+
375377
if !isGoLessThan("1.22") {
376-
return args
378+
return append(result, "--go=1.22")
377379
}
378380

379-
result := slices.Clone(args)
380-
381381
if len(result) == 0 {
382382
return append(result, "-D", "intrange,copyloopvar")
383383
}

0 commit comments

Comments
 (0)