Unverified Commit 6d5ce188 authored by Steven Allen's avatar Steven Allen Committed by GitHub

Merge pull request #54 from libp2p/go1.14

update to Go 1.14
parents 9542de3f dd8e9404
language: go
go:
- "1.13.x"
- "1.14.x"
# first part of the GOARCH workaround
# setting the GOARCH directly doesn't work, since the value will be overwritten later
......@@ -14,7 +14,6 @@ env:
# now actually set the GOARCH env variable to the value of the temporary variable set earlier
before_install:
- |
export GO111MODULE=on;
go get golang.org/x/tools/cmd/cover;
go get github.com/onsi/ginkgo/ginkgo;
go get github.com/onsi/gomega;
......
......@@ -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",
......@@ -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",
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment