Skip to content

Commit

Permalink
receive a testing.TB in NewTestingWrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
Crocmagnon authored and fsamin committed Feb 26, 2024
1 parent d335794 commit 9653f47
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wrapper.go
Original file line number Diff line number Diff line change
Expand Up @@ -151,15 +151,15 @@ func (l *LogrusWrapper) Panicf(format string, args ...interface{}) {

/* testing.T wrapper */

func NewTestingWrapper(t *testing.T) WrapperFactoryFunc {
func NewTestingWrapper(t testing.TB) WrapperFactoryFunc {
return func() Wrapper {
return &TestingWrapper{t: t}
}
}

type TestingWrapper struct {
ctx map[string]string
t *testing.T
t testing.TB
}

func (l *TestingWrapper) GetLevel() Level {
Expand Down

0 comments on commit 9653f47

Please sign in to comment.