Skip to content

Commit

Permalink
Fix tls tests
Browse files Browse the repository at this point in the history
Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr>
  • Loading branch information
frouioui committed Apr 4, 2024
1 parent 09c6873 commit 8228c8f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions go/vt/tlstest/tlstest_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ func testClientServer(t *testing.T, combineCerts bool) {
// With TLS 1.3, the Dial will succeed and the first Read will fail.
clientConn, err := tls.DialWithDialer(dialer, "tcp", addr, badClientConfig)
if err != nil {
if !strings.Contains(err.Error(), "bad certificate") {
if !strings.Contains(err.Error(), "certificate required") {
t.Errorf("Wrong error returned: %v", err)
}
return
Expand All @@ -177,7 +177,7 @@ func testClientServer(t *testing.T, combineCerts bool) {
if err == nil {
t.Fatalf("Dial or first Read was expected to fail")
}
if !strings.Contains(err.Error(), "bad certificate") {
if !strings.Contains(err.Error(), "certificate required") {
t.Errorf("Wrong error returned: %v", err)
}
}
Expand Down

0 comments on commit 8228c8f

Please sign in to comment.