mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-17 15:50:10 +00:00
e2e_apps: stop using deprecated framework.ExpectConsistOf
Signed-off-by: tao.yang <tao.yang@daocloud.io>
This commit is contained in:
parent
f852d7fead
commit
c6e54169fc
@ -506,7 +506,7 @@ func listPDBs(ctx context.Context, cs kubernetes.Interface, ns string, labelSele
|
|||||||
for _, item := range pdbList.Items {
|
for _, item := range pdbList.Items {
|
||||||
pdbNames = append(pdbNames, item.Name)
|
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) {
|
func deletePDBCollection(ctx context.Context, cs kubernetes.Interface, ns string) {
|
||||||
|
Loading…
Reference in New Issue
Block a user