mirror of
https://github.com/prometheus-community/windows_exporter.git
synced 2026-10-18 02:29:04 +02:00
chore(deps): update dependency golangci/golangci-lint to v2.15.0 (main) (#2758)
Co-authored-by: Claude <noreply@anthropic.com> Signed-off-by: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -449,8 +449,8 @@ func TestReadAheadConnCloseWaitsForReader(t *testing.T) {
|
||||
synctest.Wait()
|
||||
|
||||
select {
|
||||
case <-closed:
|
||||
t.Fatal("Close returned before the background read finished")
|
||||
case err := <-closed:
|
||||
t.Fatalf("Close returned before the background read finished: %v", err)
|
||||
default:
|
||||
}
|
||||
|
||||
|
||||
@@ -158,7 +158,8 @@ func TestBorrowedItemsPanic(t *testing.T) {
|
||||
)
|
||||
|
||||
require.Panics(t, func() {
|
||||
for range seq {
|
||||
for _, err := range seq {
|
||||
require.NoError(t, err)
|
||||
panic("consumer panic")
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user