Skip to content

Commit 2eeaebc

Browse files
committed
Move error check ahead
1 parent 6c377c1 commit 2eeaebc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/e2e/storage/csimock/csi_node_volume_health.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@ var _ = utils.SIGDescribe("CSI Mock Node Volume Health", feature.CSIVolumeHealth
127127
}
128128
return false, nil
129129
})
130+
framework.ExpectNoError(err, "while waiting for all CSI calls")
130131
// try to use ```csi.NewMetricsCsi(pv.handler).GetMetrics()``` to get metrics from csimock driver but failed.
131132
// the mocked csidriver register doesn't regist itself to normal csidriver.
132133
if test.nodeVolumeConditionRequired {
@@ -150,7 +151,6 @@ var _ = utils.SIGDescribe("CSI Mock Node Volume Health", feature.CSIVolumeHealth
150151
})
151152
framework.ExpectNoError(waitErr, "call metrics should not have any error")
152153
}
153-
framework.ExpectNoError(err, "while waiting for all CSI calls")
154154
})
155155
}
156156

0 commit comments

Comments
 (0)