Skip to content

Commit 0004e94

Browse files
fix: test failures
Signed-off-by: nelson.parente <nelson_parente@live.com.pt>
1 parent 6e189fc commit 0004e94

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

pkg/kubernetes/annotator_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ func TestAnnotate(t *testing.T) {
333333

334334
for i := range expectedDocs {
335335
if tt.printOutput {
336-
t.Logf(outDocs[i]) //nolint:govet
336+
t.Logf("%s", outDocs[i]) //nolint:govet
337337
}
338338
assert.YAMLEq(t, expectedDocs[i], outDocs[i])
339339
}

pkg/kubernetes/mtls.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ func CheckForCertExpiry() {
130130
}
131131
helpMessage := "Please see docs.dapr.io for certificate renewal instructions to avoid service interruptions."
132132
print.WarningStatusEvent(os.Stdout,
133-
fmt.Sprintf("%s Expiry date: %s. \n %s", warningMessage, expiry.Format(time.RFC1123), helpMessage))
133+
"%s", fmt.Sprintf("%s Expiry date: %s. \n %s", warningMessage, expiry.Format(time.RFC1123), helpMessage))
134134
}
135135
}
136136

pkg/kubernetes/upgrade.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,7 @@ func isDowngrade(targetVersion, existingVersion string) bool {
435435
if err != nil {
436436
print.FailureStatusEvent(
437437
os.Stderr,
438-
fmt.Sprintf("Upgrade failed, %s. The current installed version does not have sematic versioning", err.Error()))
438+
"%s", fmt.Sprintf("Upgrade failed, %s. The current installed version does not have sematic versioning", err.Error()))
439439
os.Exit(1)
440440
}
441441
return target.LessThan(existing)

0 commit comments

Comments
 (0)