Skip to content

Commit

Permalink
update to Go 1.14
Browse files Browse the repository at this point in the history
  • Loading branch information
marten-seemann committed Mar 13, 2020
1 parent 21893f7 commit 1ca1358
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions p2p/security/tls/transport_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -327,9 +327,12 @@ var _ = Describe("Transport", func() {

transforms := []transform{
{
name: "private key used in the TLS handshake doesn't match the public key in the cert",
apply: invalidateCertChain,
remoteErr: Equal("tls: invalid certificate signature"),
name: "private key used in the TLS handshake doesn't match the public key in the cert",
apply: invalidateCertChain,
remoteErr: Or(
Equal("tls: invalid signature by the client certificate: ECDSA verification failure"),
Equal("tls: invalid signature by the server certificate: ECDSA verification failure"),
),
},
{
name: "certificate chain contains 2 certs",
Expand All @@ -339,7 +342,7 @@ var _ = Describe("Transport", func() {
{
name: "cert is expired",
apply: expiredCert,
remoteErr: Equal("certificate verification failed: x509: certificate has expired or is not yet valid"),
remoteErr: ContainSubstring("certificate has expired or is not yet valid"),
},
{
name: "cert doesn't have the key extension",
Expand Down

0 comments on commit 1ca1358

Please sign in to comment.