mirror of
https://github.com/vmware-tanzu/pinniped.git
synced 2026-09-27 18:34:40 +00:00
Bump golangci-lint to 1.51.2 and fix lint issues
This commit is contained in:
@@ -5,6 +5,6 @@
|
||||
|
||||
package tlsassertions
|
||||
|
||||
func GetTlsErrorPrefix() string {
|
||||
func GetTLSErrorPrefix() string {
|
||||
return "tls: failed to verify certificate: "
|
||||
}
|
||||
|
||||
@@ -11,12 +11,12 @@ import (
|
||||
"github.com/stretchr/testify/require"
|
||||
)
|
||||
|
||||
func TestGetTlsErrorPrefix(t *testing.T) {
|
||||
func TestGetTLSErrorPrefix(t *testing.T) {
|
||||
expected := "tls: failed to verify certificate: "
|
||||
|
||||
if strings.Contains(runtime.Version(), "1.19") {
|
||||
expected = ""
|
||||
}
|
||||
|
||||
require.Equal(t, expected, GetTlsErrorPrefix())
|
||||
require.Equal(t, expected, GetTLSErrorPrefix())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user