Skip to content

Commit e09ac0e

Browse files
fix: test failures
Signed-off-by: nelson.parente <[email protected]>
1 parent 5fe8a9d commit e09ac0e

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

pkg/kubernetes/upgrade.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ func Upgrade(conf UpgradeConfig) error {
195195
errDeletion := deleteSchedulerPods(status[0].Namespace, currentVersion, targetVersion)
196196
if errDeletion != nil {
197197
downgradeDeletionChan <- fmt.Errorf("failed to delete scheduler pods: %w", errDeletion)
198-
print.FailureStatusEvent(os.Stderr, "Failed to delete scheduler pods: "+errDeletion.Error())
198+
print.FailureStatusEvent(os.Stderr, "Failed to delete scheduler pods: %v", errDeletion)
199199
}
200200
close(downgradeDeletionChan)
201201
}()

pkg/print/print.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,9 +175,9 @@ func Spinner(w io.Writer, fmtstr string, a ...interface{}) func(result Result) {
175175
s.Stop()
176176
}
177177
if result {
178-
SuccessStatusEvent(w, msg)
178+
SuccessStatusEvent(w, "%s", msg)
179179
} else {
180-
FailureStatusEvent(w, msg)
180+
FailureStatusEvent(w, "%s", msg)
181181
}
182182
})
183183
}

pkg/standalone/standalone.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ func Init(runtimeVersion, dashboardVersion string, dockerNetwork string, slimMod
286286
if isAirGapInit {
287287
msg = "Extracting binaries and setting up components..."
288288
}
289-
stopSpinning := print.Spinner(os.Stdout, msg)
289+
stopSpinning := print.Spinner(os.Stdout, "%s", msg)
290290
defer stopSpinning(print.Failure)
291291

292292
// Make default components directory.
@@ -332,7 +332,7 @@ func Init(runtimeVersion, dashboardVersion string, dockerNetwork string, slimMod
332332
if isAirGapInit {
333333
msg = "Extracted binaries and completed components set up."
334334
}
335-
print.SuccessStatusEvent(os.Stdout, msg)
335+
print.SuccessStatusEvent(os.Stdout, "%s", msg)
336336
print.InfoStatusEvent(os.Stdout, "%s binary has been installed to %s.", daprRuntimeFilePrefix, daprBinDir)
337337
if slimMode {
338338
// Print info on placement binary only on slim install.

0 commit comments

Comments
 (0)