Skip to content

Commit c686786

Browse files
committed
Fix assertion for invalid TLS certificate test
Signed-off-by: Lorenzo <[email protected]>
1 parent f0af2ad commit c686786

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ws/websocket_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -821,7 +821,7 @@ func TestInvalidClientTLSCertificate(t *testing.T) {
821821
assert.NotNil(t, err)
822822
netError, ok := err.(net.Error)
823823
require.True(t, ok)
824-
assert.Equal(t, "remote error: tls: bad certificate", netError.Error()) // tls.alertBadCertificate = 42
824+
assert.Equal(t, "remote error: tls: unknown certificate authority", netError.Error()) // tls.alertUnknownCA = 48
825825
// Cleanup
826826
wsServer.Stop()
827827
}

0 commit comments

Comments
 (0)