forked from quic-go/quic-go
add a quic.Config option to set the handshake timeout
This commit is contained in:
@@ -1403,7 +1403,7 @@ var _ = Describe("Session", func() {
|
||||
})
|
||||
|
||||
It("times out due to non-completed crypto handshake", func(done Done) {
|
||||
sess.sessionCreationTime = time.Now().Add(-time.Hour)
|
||||
sess.sessionCreationTime = time.Now().Add(-protocol.DefaultHandshakeTimeout).Add(-time.Second)
|
||||
sess.run() // Would normally not return
|
||||
Expect(mconn.written[0]).To(ContainSubstring("Crypto handshake did not complete in time."))
|
||||
Expect(sess.runClosed).To(BeClosed())
|
||||
|
||||
Reference in New Issue
Block a user