mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-09 20:17:41 +00:00
Move error check ahead
This commit is contained in:
parent
6c377c10da
commit
2eeaebca24
@ -127,6 +127,7 @@ var _ = utils.SIGDescribe("CSI Mock Node Volume Health", feature.CSIVolumeHealth
|
|||||||
}
|
}
|
||||||
return false, nil
|
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.
|
// 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.
|
// the mocked csidriver register doesn't regist itself to normal csidriver.
|
||||||
if test.nodeVolumeConditionRequired {
|
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(waitErr, "call metrics should not have any error")
|
||||||
}
|
}
|
||||||
framework.ExpectNoError(err, "while waiting for all CSI calls")
|
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user