Skip to content

Commit

Permalink
Merge pull request #121068 from carlory/cleanup-e2e-framework-depreca…
Browse files Browse the repository at this point in the history
…ted-funcs

clean up deprecated funcs in e2e framework
  • Loading branch information
k8s-ci-robot committed Oct 17, 2023
2 parents 27ff547 + 137ad9b commit e7fd5b8
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions test/e2e/framework/expect.go
Original file line number Diff line number Diff line change
Expand Up @@ -356,24 +356,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...)
}

0 comments on commit e7fd5b8

Please sign in to comment.