Skip to content

Commit 6a041cb

Browse files
committed
Exempted - support cleanup method in test_helper.go
1 parent 5cb82be commit 6a041cb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

internal/acctest/test_helpers.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -518,6 +518,10 @@ func (t *OciTestT) Error(args ...interface{}) {
518518
t.ErrorMessages = append(t.ErrorMessages, str)
519519
}
520520

521+
func (t *OciTestT) Cleanup(f func()) {
522+
t.T.Cleanup(f)
523+
}
524+
521525
func (t *OciTestT) Errorf(format string, args ...interface{}) {
522526
t.T.Errorf(format, args...)
523527
str := fmt.Sprintf("%v", args)

0 commit comments

Comments
 (0)