lint 💄

This commit is contained in:
Samuel Berthe
2024-07-15 19:37:47 +02:00
parent cbfd1c6286
commit f6f43fb884

View File

@@ -12,12 +12,12 @@ func testWithTimeout(t *testing.T, timeout time.Duration) {
testFinished := make(chan struct{}) testFinished := make(chan struct{})
t.Cleanup(func() { close(testFinished) }) t.Cleanup(func() { close(testFinished) })
go func() { go func() { //nolint:staticcheck
select { select {
case <-testFinished: case <-testFinished:
case <-time.After(timeout): case <-time.After(timeout):
t.Errorf("test timed out after %s", timeout) t.Errorf("test timed out after %s", timeout)
t.FailNow() t.FailNow() //nolint:govet,staticcheck
} }
}() }()
} }