Skip to content

Commit

Permalink
fix golangci-lint
Browse files Browse the repository at this point in the history
  • Loading branch information
casualjim committed Apr 28, 2022
1 parent 219a745 commit 6df43e7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions client/runtime_test.go
Expand Up @@ -176,7 +176,7 @@ func TestRuntime_TLSAuthConfigWithLoadedCAPool(t *testing.T) {

// Using require.Len prints the (very large and incomprehensible)
// Subjects list on failure, so instead use require.Equal.
require.Equal(t, 1, len(cfg.RootCAs.Subjects()))
require.Equal(t, 1, len(cfg.RootCAs.Subjects())) // nolint:staticcheck
}
}
}
Expand All @@ -199,7 +199,7 @@ func TestRuntime_TLSAuthConfigWithLoadedCAPoolAndLoadedCA(t *testing.T) {
pool, err = x509.SystemCertPool()
require.NoError(t, err)
}
startingCertCount := len(pool.Subjects())
startingCertCount := len(pool.Subjects()) // nolint:staticcheck

var opts TLSClientOptions
opts.LoadedCAPool = pool
Expand All @@ -212,7 +212,7 @@ func TestRuntime_TLSAuthConfigWithLoadedCAPoolAndLoadedCA(t *testing.T) {

// Using require.Len prints the (very large and incomprehensible)
// Subjects list on failure, so instead use require.Equal.
require.Equal(t, startingCertCount+1, len(cfg.RootCAs.Subjects()))
require.Equal(t, startingCertCount+1, len(cfg.RootCAs.Subjects())) // nolint:staticcheck
}
}
}
Expand Down

0 comments on commit 6df43e7

Please sign in to comment.