diff options
Diffstat (limited to 'extras/hs-test/infra/hst_suite.go')
-rw-r--r-- | extras/hs-test/infra/hst_suite.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/extras/hs-test/infra/hst_suite.go b/extras/hs-test/infra/hst_suite.go index 2cf241afa64..1f1d54b1b94 100644 --- a/extras/hs-test/infra/hst_suite.go +++ b/extras/hs-test/infra/hst_suite.go @@ -224,6 +224,10 @@ func (s *HstSuite) AssertNotEmpty(object interface{}, msgAndArgs ...interface{}) Expect(object).ToNot(BeEmpty(), msgAndArgs...) } +func (s *HstSuite) AssertMatchError(actual, expected error, msgAndArgs ...interface{}) { + Expect(actual).To(MatchError(expected)) +} + func (s *HstSuite) CreateLogger() { suiteName := s.GetCurrentSuiteName() var err error |