e2e_storage: stop using deprecated framework.ExpectEqual

This commit is contained in:
宋文杰
2023-07-25 18:49:16 +08:00
parent f852d7fead
commit 8a368afa27
32 changed files with 107 additions and 89 deletions

View File

@@ -119,7 +119,7 @@ var _ = utils.SIGDescribe("Mounted volume expand [Feature:StorageProvider]", fun
ginkgo.By("Checking for bound PVC")
pvs, err := e2epv.WaitForPVClaimBoundPhase(ctx, c, pvcClaims, framework.ClaimProvisionTimeout)
framework.ExpectNoError(err, "Failed waiting for PVC to be bound %v", err)
framework.ExpectEqual(len(pvs), 1)
gomega.Expect(pvs).To(gomega.HaveLen(1))
ginkgo.By("Wait for a pod from deployment to be running")
podList, err := e2edeployment.GetPodsForDeployment(ctx, c, deployment)
@@ -164,7 +164,7 @@ var _ = utils.SIGDescribe("Mounted volume expand [Feature:StorageProvider]", fun
framework.ExpectNoError(err, "while waiting for fs resize to finish")
pvcConditions := pvc.Status.Conditions
framework.ExpectEqual(len(pvcConditions), 0, "pvc should not have conditions")
gomega.Expect(pvcConditions).To(gomega.BeEmpty(), "pvc should not have conditions")
})
})