Skip to content

Commit 3e0e0bb

Browse files
committed
tests: don't use t.Errorf on regular strings
Linter start complining, switch to `t.Error`
1 parent f55f0d0 commit 3e0e0bb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

debounce/refresh_debouncer_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ func TestErrorBroadcaster_MultipleListeners(t *testing.T) {
214214
}()
215215
wg.Wait()
216216
if loadedVal := result.Load(); loadedVal != nil {
217-
t.Errorf(loadedVal.(error).Error())
217+
t.Error(loadedVal.(error).Error())
218218
}
219219
}
220220

@@ -249,6 +249,6 @@ func TestErrorBroadcaster_StopWithoutBroadcast(t *testing.T) {
249249
}()
250250
wg.Wait()
251251
if loadedVal := result.Load(); loadedVal != nil {
252-
t.Errorf(loadedVal.(error).Error())
252+
t.Error(loadedVal.(error).Error())
253253
}
254254
}

0 commit comments

Comments
 (0)