From c6e54169fc1033d4f876ebf44933912187d46199 Mon Sep 17 00:00:00 2001 From: "tao.yang" Date: Wed, 16 Aug 2023 11:46:08 +0800 Subject: [PATCH] e2e_apps: stop using deprecated framework.ExpectConsistOf Signed-off-by: tao.yang --- test/e2e/apps/disruption.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/e2e/apps/disruption.go b/test/e2e/apps/disruption.go index 8e9f8d9646e..c20fe3b85ea 100644 --- a/test/e2e/apps/disruption.go +++ b/test/e2e/apps/disruption.go @@ -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) {