Skip to content

Commit

Permalink
Fix assertion for invalid TLS certificate test
Browse files Browse the repository at this point in the history
Signed-off-by: Lorenzo <[email protected]>
  • Loading branch information
lorenzodonini committed Sep 8, 2023
1 parent f0af2ad commit c686786
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ws/websocket_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -821,7 +821,7 @@ func TestInvalidClientTLSCertificate(t *testing.T) {
assert.NotNil(t, err)
netError, ok := err.(net.Error)
require.True(t, ok)
assert.Equal(t, "remote error: tls: bad certificate", netError.Error()) // tls.alertBadCertificate = 42
assert.Equal(t, "remote error: tls: unknown certificate authority", netError.Error()) // tls.alertUnknownCA = 48
// Cleanup
wsServer.Stop()
}
Expand Down

0 comments on commit c686786

Please sign in to comment.