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