Skip to content

Commit 03df632

Browse files
committed
Wait for resizing condition
1 parent e397797 commit 03df632

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)