forked from quic-go/quic-go
export the IdleTimeoutError and the HandshakeTimeoutError
This commit is contained in:
@@ -54,7 +54,7 @@ func areHandshakesRunning() bool {
|
||||
|
||||
var _ = Describe("Timeout tests", func() {
|
||||
checkTimeoutError := func(err error) {
|
||||
ExpectWithOffset(1, err).To(HaveOccurred())
|
||||
ExpectWithOffset(1, err).To(MatchError(&quic.IdleTimeoutError{}))
|
||||
nerr, ok := err.(net.Error)
|
||||
ExpectWithOffset(1, ok).To(BeTrue())
|
||||
ExpectWithOffset(1, nerr.Timeout()).To(BeTrue())
|
||||
|
||||
Reference in New Issue
Block a user