mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-21 19:01:49 +00:00
print all calls when compare CSI call failed
This commit is contained in:
parent
4e5171b396
commit
a5587de2e4
@ -311,8 +311,10 @@ var _ = utils.SIGDescribe("CSI Mock volume expansion", func() {
|
|||||||
framework.ExpectNoError(err, "while waiting for PVC to finish")
|
framework.ExpectNoError(err, "while waiting for PVC to finish")
|
||||||
|
|
||||||
ginkgo.By("Waiting for all remaining expected CSI calls")
|
ginkgo.By("Waiting for all remaining expected CSI calls")
|
||||||
|
var allCalls []drivers.MockCSICall
|
||||||
err = wait.Poll(time.Second, csiResizeWaitPeriod, func() (done bool, err error) {
|
err = wait.Poll(time.Second, csiResizeWaitPeriod, func() (done bool, err error) {
|
||||||
_, index, err := compareCSICalls(ctx, trackedCalls, test.expectedCalls, m.driver.GetCalls)
|
var index int
|
||||||
|
allCalls, index, err = compareCSICalls(ctx, trackedCalls, test.expectedCalls, m.driver.GetCalls)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return true, err
|
return true, err
|
||||||
}
|
}
|
||||||
@ -326,7 +328,7 @@ var _ = utils.SIGDescribe("CSI Mock volume expansion", func() {
|
|||||||
}
|
}
|
||||||
return false, nil
|
return false, nil
|
||||||
})
|
})
|
||||||
framework.ExpectNoError(err, "while waiting for all CSI calls")
|
framework.ExpectNoError(err, fmt.Sprintf("while waiting for all CSI calls: %s", allCalls))
|
||||||
|
|
||||||
pvcConditions := pvc.Status.Conditions
|
pvcConditions := pvc.Status.Conditions
|
||||||
framework.ExpectEqual(len(pvcConditions), 0, "pvc should not have conditions")
|
framework.ExpectEqual(len(pvcConditions), 0, "pvc should not have conditions")
|
||||||
|
Loading…
Reference in New Issue
Block a user