File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -461,7 +461,6 @@ var _ = utils.SIGDescribe("CSI mock volume", func() {
461
461
init (tp )
462
462
defer cleanup ()
463
463
464
- ns := f .Namespace .Name
465
464
sc , pvc , pod := createPod (false )
466
465
gomega .Expect (pod ).NotTo (gomega .BeNil (), "while creating pod for resizing" )
467
466
@@ -505,8 +504,9 @@ var _ = utils.SIGDescribe("CSI mock volume", func() {
505
504
checkPVCSize ()
506
505
} else {
507
506
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
510
510
511
511
inProgressConditions := pvc .Status .Conditions
512
512
if len (inProgressConditions ) > 0 {
You can’t perform that action at this time.
0 commit comments