Skip to content

Commit 6c98d55

Browse files
authored
Merge pull request kubernetes#86396 from gnufied/fix-mock-driver-resizing-condition
Wait for resizing condition
2 parents 8b7cf0f + 03df632 commit 6c98d55

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/e2e/storage/csi_mock_volume.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -461,7 +461,6 @@ var _ = utils.SIGDescribe("CSI mock volume", func() {
461461
init(tp)
462462
defer cleanup()
463463

464-
ns := f.Namespace.Name
465464
sc, pvc, pod := createPod(false)
466465
gomega.Expect(pod).NotTo(gomega.BeNil(), "while creating pod for resizing")
467466

@@ -505,8 +504,9 @@ var _ = utils.SIGDescribe("CSI mock volume", func() {
505504
checkPVCSize()
506505
} else {
507506
ginkgo.By("Checking for conditions on pvc")
508-
pvc, err = m.cs.CoreV1().PersistentVolumeClaims(ns).Get(pvc.Name, metav1.GetOptions{})
509-
framework.ExpectNoError(err, "While fetching pvc after controller resize")
507+
npvc, err := testsuites.WaitForPendingFSResizeCondition(pvc, m.cs)
508+
framework.ExpectNoError(err, "While waiting for pvc to have fs resizing condition")
509+
pvc = npvc
510510

511511
inProgressConditions := pvc.Status.Conditions
512512
if len(inProgressConditions) > 0 {

0 commit comments

Comments
 (0)