From 6c377c10da9501ac8630bd739685520e1339b0bd Mon Sep 17 00:00:00 2001 From: mowangdk Date: Fri, 19 Jul 2024 11:14:55 +0800 Subject: [PATCH] Fix error print --- test/e2e/storage/csimock/csi_node_volume_health.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/e2e/storage/csimock/csi_node_volume_health.go b/test/e2e/storage/csimock/csi_node_volume_health.go index 091c0e89955..1f16a27bdc6 100644 --- a/test/e2e/storage/csimock/csi_node_volume_health.go +++ b/test/e2e/storage/csimock/csi_node_volume_health.go @@ -109,7 +109,7 @@ var _ = utils.SIGDescribe("CSI Mock Node Volume Health", feature.CSIVolumeHealth ginkgo.By("Waiting for pod to be running") err = e2epod.WaitForPodNameRunningInNamespace(ctx, m.cs, pod.Name, pod.Namespace) - framework.ExpectNoError(err, "Failed to start pod: %v", err) + framework.ExpectNoError(err, "wait for running pod") ginkgo.By("Waiting for all remaining expected CSI calls") err = wait.PollUntilContextTimeout(ctx, time.Second, csiNodeVolumeStatWaitPeriod, true, func(c context.Context) (done bool, err error) { var index int @@ -131,7 +131,7 @@ var _ = utils.SIGDescribe("CSI Mock Node Volume Health", feature.CSIVolumeHealth // the mocked csidriver register doesn't regist itself to normal csidriver. if test.nodeVolumeConditionRequired { pod, err := f.ClientSet.CoreV1().Pods(pod.Namespace).Get(ctx, pod.Name, metav1.GetOptions{}) - framework.ExpectNoError(err, "Failed to get pods: %v", err) + framework.ExpectNoError(err, "get running pod") grabber, err := e2emetrics.NewMetricsGrabber(ctx, f.ClientSet, nil, f.ClientConfig(), true, false, false, false, false, false) framework.ExpectNoError(err, "creating the metrics grabber") waitErr := wait.PollUntilContextTimeout(ctx, 30*time.Second, csiNodeVolumeStatWaitPeriod, true, func(ctx context.Context) (bool, error) {