Skip to content

Commit 4ceef7d

Browse files
committed
lib/resourcemerge: Fix non-constant format string in call to Errorf
As noticed by a golangci-lint run: ```sh lib/resourcemerge/batch_test.go:417:16: printf: non-constant format string in call to (*testing.common).Errorf (govet) t.Errorf(test.name + " should have panicked!") ```
1 parent a5cd0e0 commit 4ceef7d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/resourcemerge/batch_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,7 @@ func TestEnsureJob_JobSpec_Selector(t *testing.T) {
414414
switch r := recover(); r {
415415
case nil:
416416
if test.expectedPanic {
417-
t.Errorf(test.name + " should have panicked!")
417+
t.Errorf("%s should have panicked!", test.name)
418418
}
419419
default:
420420
if !test.expectedPanic {

0 commit comments

Comments
 (0)