Merge pull request #123138 from carlory/remove-ExpectNotEqual

remove deprecated framework.ExpectNotEqual
This commit is contained in:
Kubernetes Prow Robot
2024-02-23 02:57:09 -08:00
committed by GitHub
2 changed files with 3 additions and 10 deletions

View File

@@ -293,13 +293,6 @@ func (f *FailureError) backtrace() {
// }
var ErrFailure error = FailureError{}
// ExpectNotEqual expects the specified two are not the same, otherwise an exception raises
//
// Deprecated: use gomega.Expect().ToNot(gomega.Equal())
func ExpectNotEqual(actual interface{}, extra interface{}, explain ...interface{}) {
gomega.ExpectWithOffset(1, actual).NotTo(gomega.Equal(extra), explain...)
}
// ExpectError expects an error happens, otherwise an exception raises
//
// Deprecated: use gomega.Expect().To(gomega.HaveOccurred()) or (better!) check