diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2022-03-19 09:38:49 +1100 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2022-03-19 12:12:57 +1100 |
commit | a34bdf1a046c90c22a1c0b653241b8107e89c7f9 (patch) | |
tree | 4de55d492803487a6575c976f89875744a7d3b7b /pkg/test | |
parent | d93fef4c61db20dd9e2bb535c2fbb742cdbed60a (diff) |
update linters
Diffstat (limited to 'pkg/test')
-rw-r--r-- | pkg/test/log.go | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/pkg/test/log.go b/pkg/test/log.go index 3b166bb5d..32d79b987 100644 --- a/pkg/test/log.go +++ b/pkg/test/log.go @@ -8,9 +8,7 @@ import ( "github.com/stretchr/testify/assert" ) -var ( - _ logrus.FieldLogger = &FakeFieldLogger{} -) +var _ logrus.FieldLogger = &FakeFieldLogger{} // for now we're just tracking calls to the Error and Errorf methods type FakeFieldLogger struct { @@ -37,5 +35,6 @@ func (self *FakeFieldLogger) Errorf(format string, args ...interface{}) { } func (self *FakeFieldLogger) AssertErrors(t *testing.T, expectedErrors []string) { + t.Helper() assert.EqualValues(t, expectedErrors, self.loggedErrors) } |