forked from quic-go/quic-go
ci: disable the unparam linter for tests (#4738)
This commit is contained in:
@@ -44,3 +44,4 @@ issues:
|
||||
linters:
|
||||
- exhaustive
|
||||
- prealloc
|
||||
- unparam
|
||||
|
||||
@@ -26,7 +26,6 @@ var _ = AfterEach(func() {
|
||||
mockCtrl.Finish()
|
||||
})
|
||||
|
||||
//nolint:unparam
|
||||
func scaleDuration(t time.Duration) time.Duration {
|
||||
scaleFactor := 1
|
||||
if f, err := strconv.Atoi(os.Getenv("TIMESCALE_FACTOR")); err == nil { // parsing "" errors, so this works fine if the env is not set
|
||||
|
||||
@@ -329,7 +329,6 @@ func TestRejectFrequentKeyUpdates(t *testing.T) {
|
||||
}, err)
|
||||
}
|
||||
|
||||
//nolint:unparam
|
||||
func setKeyUpdateIntervals(t *testing.T, firstKeyUpdateInterval, keyUpdateInterval uint64) {
|
||||
origKeyUpdateInterval := KeyUpdateInterval
|
||||
origFirstKeyUpdateInterval := FirstKeyUpdateInterval
|
||||
|
||||
@@ -109,7 +109,6 @@ func TestServerConfigGetConfigForClientRecursively(t *testing.T) {
|
||||
var localAddr, remoteAddr net.Addr
|
||||
tlsConf := &tls.Config{}
|
||||
var innerConf *tls.Config
|
||||
//nolint:unparam
|
||||
getCert := func(info *tls.ClientHelloInfo) (*tls.Certificate, error) {
|
||||
localAddr = info.Conn.LocalAddr()
|
||||
remoteAddr = info.Conn.RemoteAddr()
|
||||
|
||||
@@ -11,7 +11,6 @@ import (
|
||||
"github.com/stretchr/testify/require"
|
||||
)
|
||||
|
||||
//nolint:unparam
|
||||
func scaleDuration(t time.Duration) time.Duration {
|
||||
scaleFactor := 1
|
||||
if f, err := strconv.Atoi(os.Getenv("TIMESCALE_FACTOR")); err == nil { // parsing "" errors, so this works fine if the env is not set
|
||||
|
||||
Reference in New Issue
Block a user