From 137ad9bf2b5cfc0107c472311ef369008c144148 Mon Sep 17 00:00:00 2001 From: carlory Date: Mon, 9 Oct 2023 16:51:53 +0800 Subject: [PATCH] clean up deprecated funcs in e2e framework --- test/e2e/framework/expect.go | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/test/e2e/framework/expect.go b/test/e2e/framework/expect.go index 3d66fca1194..75c15866ff0 100644 --- a/test/e2e/framework/expect.go +++ b/test/e2e/framework/expect.go @@ -363,24 +363,3 @@ func ExpectNoErrorWithOffset(offset int, err error, explain ...interface{}) { } Fail(prefix+err.Error(), 1+offset) } - -// ExpectConsistOf expects actual contains precisely the extra elements. The ordering of the elements does not matter. -// -// Deprecated: use gomega.Expect().To(gomega.ConsistOf()) instead -func ExpectConsistOf(actual interface{}, extra interface{}, explain ...interface{}) { - gomega.ExpectWithOffset(1, actual).To(gomega.ConsistOf(extra), explain...) -} - -// ExpectHaveKey expects the actual map has the key in the keyset -// -// Deprecated: use gomega.Expect().To(gomega.HaveKey()) instead -func ExpectHaveKey(actual interface{}, key interface{}, explain ...interface{}) { - gomega.ExpectWithOffset(1, actual).To(gomega.HaveKey(key), explain...) -} - -// ExpectEmpty expects actual is empty -// -// Deprecated: use gomega.Expect().To(gomega.BeEmpty()) instead -func ExpectEmpty(actual interface{}, explain ...interface{}) { - gomega.ExpectWithOffset(1, actual).To(gomega.BeEmpty(), explain...) -}