Skip to content

Commit 6c377c1

Browse files
committed
Fix error print
1 parent 7111e41 commit 6c377c1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/e2e/storage/csimock/csi_node_volume_health.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ var _ = utils.SIGDescribe("CSI Mock Node Volume Health", feature.CSIVolumeHealth
109109

110110
ginkgo.By("Waiting for pod to be running")
111111
err = e2epod.WaitForPodNameRunningInNamespace(ctx, m.cs, pod.Name, pod.Namespace)
112-
framework.ExpectNoError(err, "Failed to start pod: %v", err)
112+
framework.ExpectNoError(err, "wait for running pod")
113113
ginkgo.By("Waiting for all remaining expected CSI calls")
114114
err = wait.PollUntilContextTimeout(ctx, time.Second, csiNodeVolumeStatWaitPeriod, true, func(c context.Context) (done bool, err error) {
115115
var index int
@@ -131,7 +131,7 @@ var _ = utils.SIGDescribe("CSI Mock Node Volume Health", feature.CSIVolumeHealth
131131
// the mocked csidriver register doesn't regist itself to normal csidriver.
132132
if test.nodeVolumeConditionRequired {
133133
pod, err := f.ClientSet.CoreV1().Pods(pod.Namespace).Get(ctx, pod.Name, metav1.GetOptions{})
134-
framework.ExpectNoError(err, "Failed to get pods: %v", err)
134+
framework.ExpectNoError(err, "get running pod")
135135
grabber, err := e2emetrics.NewMetricsGrabber(ctx, f.ClientSet, nil, f.ClientConfig(), true, false, false, false, false, false)
136136
framework.ExpectNoError(err, "creating the metrics grabber")
137137
waitErr := wait.PollUntilContextTimeout(ctx, 30*time.Second, csiNodeVolumeStatWaitPeriod, true, func(ctx context.Context) (bool, error) {

0 commit comments

Comments
 (0)