]> Cypherpunks repositories - gostls13.git/commit
crypto/tls: test for timeout error using the net.Error interface
authorBrad Fitzpatrick <bradfitz@golang.org>
Tue, 8 Mar 2016 22:10:28 +0000 (22:10 +0000)
committerBrad Fitzpatrick <bradfitz@golang.org>
Tue, 8 Mar 2016 22:40:49 +0000 (22:40 +0000)
commitbf44c4c889935b3ef1db9b7fd0a14ce4e5508cab
treec5289bb99697db96b97ab920a2bc1ccdae171c42
parentfb2f99d5fd9fe651d26de9a9550935897907d27b
crypto/tls: test for timeout error using the net.Error interface

Don't do a substring search to test for a timeout error.

Fixes #14722 (maybe)

Change-Id: I4e18c749d6fd92c084a1b0b83a805119e1ae5ff2
Reviewed-on: https://go-review.googlesource.com/20403
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
Reviewed-by: Keith Randall <khr@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/crypto/tls/tls_test.go