Merge pull request #119959 from ty-dc/cleanup-e2e-common-framework-ExpectConsistOf

e2e_apps: stop using deprecated framework.ExpectConsistOf
This commit is contained in:
Kubernetes Prow Robot 2023-08-22 01:20:05 -07:00 committed by GitHub
commit cde1b19a31
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -506,7 +506,7 @@ func listPDBs(ctx context.Context, cs kubernetes.Interface, ns string, labelSele
for _, item := range pdbList.Items {
pdbNames = append(pdbNames, item.Name)
}
framework.ExpectConsistOf(pdbNames, expectedPDBNames, "Expecting returned PDBs '%s' in namespace %s", expectedPDBNames, ns)
gomega.Expect(pdbNames).To(gomega.ConsistOf(expectedPDBNames), "Expecting returned PDBs '%s' in namespace %s", expectedPDBNames, ns)
}
func deletePDBCollection(ctx context.Context, cs kubernetes.Interface, ns string) {