Fix typo that prevented compiling with Go 1.19
This commit is contained in:
parent
6ae3c0a9c3
commit
f7fac330f5
@ -5,6 +5,6 @@
|
||||
|
||||
package tlsassertions
|
||||
|
||||
func GetTlsErrorPrefix() string {
|
||||
func GetTLSErrorPrefix() string {
|
||||
return ""
|
||||
}
|
||||
|
@ -1,22 +0,0 @@
|
||||
// Copyright 2023 the Pinniped contributors. All Rights Reserved.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
package tlsassertions
|
||||
|
||||
import (
|
||||
"runtime"
|
||||
"strings"
|
||||
"testing"
|
||||
|
||||
"github.com/stretchr/testify/require"
|
||||
)
|
||||
|
||||
func TestGetTLSErrorPrefix(t *testing.T) {
|
||||
expected := "tls: failed to verify certificate: "
|
||||
|
||||
if strings.Contains(runtime.Version(), "1.19") {
|
||||
expected = ""
|
||||
}
|
||||
|
||||
require.Equal(t, expected, GetTLSErrorPrefix())
|
||||
}
|
Loading…
Reference in New Issue
Block a user