mirror of
https://github.com/crowdsecurity/crowdsec.git
synced 2025-05-11 12:25:53 +02:00
lint: explicit error checks (#3388)
* errcheck: tests * fflag errcheck * http_test errcheck (avoid duplicate metric registration)
This commit is contained in:
parent
5c0c4f9fa6
commit
4e6e6dec65
19 changed files with 185 additions and 99 deletions
|
@ -194,7 +194,8 @@ topic: crowdsecplaintext`), subLogger, configuration.METRICS_NONE)
|
|||
}
|
||||
require.Equal(t, ts.expectedLines, actualLines)
|
||||
tomb.Kill(nil)
|
||||
tomb.Wait()
|
||||
err = tomb.Wait()
|
||||
require.NoError(t, err)
|
||||
})
|
||||
}
|
||||
}
|
||||
|
@ -271,7 +272,8 @@ tls:
|
|||
}
|
||||
require.Equal(t, ts.expectedLines, actualLines)
|
||||
tomb.Kill(nil)
|
||||
tomb.Wait()
|
||||
err = tomb.Wait()
|
||||
require.NoError(t, err)
|
||||
})
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue