Fix typo that prevented compiling with Go 1.19

This commit is contained in:
Ryan Richard 2023-04-03 10:55:37 -07:00
parent 6ae3c0a9c3
commit f7fac330f5
2 changed files with 1 additions and 23 deletions

View File

@ -5,6 +5,6 @@
package tlsassertions
func GetTlsErrorPrefix() string {
func GetTLSErrorPrefix() string {
return ""
}

View File

@ -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())
}