Skip to content

Commit f9a9503

Browse files
committed
fix error 'non-constant format string in call to (*testing.common).Logf' of unit test
1 parent 51afed7 commit f9a9503

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/operator/kubeletversionskewcontroller/kubelet_version_skew_controller_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ func Test_kubeletVersionSkewController_Sync(t *testing.T) {
173173
t.Log(diff.StringDiff(tc.expectedMsgLines, condition.Message))
174174
}
175175
if t.Failed() {
176-
t.Logf(condition.Message)
176+
t.Logf("Condition message: %s", condition.Message)
177177
}
178178
})
179179
}

0 commit comments

Comments
 (0)