use the new crypto/tls QUIC Transport (#3860)

This commit is contained in:
Marten Seemann
2023-07-01 11:15:00 -07:00
committed by GitHub
parent 4998733ae1
commit 3d89e545d3
55 changed files with 2197 additions and 1509 deletions

View File

@@ -198,7 +198,10 @@ var _ = Describe("Handshake tests", func() {
var transportErr *quic.TransportError
Expect(errors.As(err, &transportErr)).To(BeTrue())
Expect(transportErr.ErrorCode.IsCryptoError()).To(BeTrue())
Expect(transportErr.Error()).To(ContainSubstring("tls: bad certificate"))
Expect(transportErr.Error()).To(Or(
ContainSubstring("tls: certificate required"),
ContainSubstring("tls: bad certificate"),
))
})
It("uses the ServerName in the tls.Config", func() {