From 2eeaebca24825fef248d8ce446aa68992220544d Mon Sep 17 00:00:00 2001 From: mowangdk Date: Tue, 23 Jul 2024 16:13:47 +0800 Subject: [PATCH] Move error check ahead --- test/e2e/storage/csimock/csi_node_volume_health.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/e2e/storage/csimock/csi_node_volume_health.go b/test/e2e/storage/csimock/csi_node_volume_health.go index 1f16a27bdc6..c98433aaca2 100644 --- a/test/e2e/storage/csimock/csi_node_volume_health.go +++ b/test/e2e/storage/csimock/csi_node_volume_health.go @@ -127,6 +127,7 @@ var _ = utils.SIGDescribe("CSI Mock Node Volume Health", feature.CSIVolumeHealth } return false, nil }) + framework.ExpectNoError(err, "while waiting for all CSI calls") // try to use ```csi.NewMetricsCsi(pv.handler).GetMetrics()``` to get metrics from csimock driver but failed. // the mocked csidriver register doesn't regist itself to normal csidriver. if test.nodeVolumeConditionRequired { @@ -150,7 +151,6 @@ var _ = utils.SIGDescribe("CSI Mock Node Volume Health", feature.CSIVolumeHealth }) framework.ExpectNoError(waitErr, "call metrics should not have any error") } - framework.ExpectNoError(err, "while waiting for all CSI calls") }) }