]> Cypherpunks repositories - gostls13.git/commitdiff
vendor: update golang.org/x/net/nettest
authorDavid du Colombier <0intro@gmail.com>
Thu, 25 May 2017 01:21:17 +0000 (03:21 +0200)
committerDavid du Colombier <0intro@gmail.com>
Thu, 25 May 2017 01:34:15 +0000 (01:34 +0000)
Update golang.org/x/net/nettest to revision 7dcfb8076726a3fdd9353b6b8a1f1b6be6811bd6.

Change-Id: Ib6505423910d34142d7b1bcb6792a5017df4da47
Reviewed-on: https://go-review.googlesource.com/44131
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Run-TryBot: David du Colombier <0intro@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>

src/vendor/golang_org/x/net/nettest/conntest.go

index c246bbe399ee75d64ab1d52ca2f372133e4b3add..5bd3a8c68c587bd0f76a5fa066706d32498fb3f9 100644 (file)
@@ -12,6 +12,7 @@ import (
        "io/ioutil"
        "math/rand"
        "net"
+       "runtime"
        "sync"
        "testing"
        "time"
@@ -341,6 +342,9 @@ func testCloseTimeout(t *testing.T, c1, c2 net.Conn) {
 // testConcurrentMethods tests that the methods of net.Conn can safely
 // be called concurrently.
 func testConcurrentMethods(t *testing.T, c1, c2 net.Conn) {
+       if runtime.GOOS == "plan9" {
+               t.Skip("skipping on plan9; see https://golang.org/issue/20489")
+       }
        go chunkedCopy(c2, c2)
 
        // The results of the calls may be nonsensical, but this should
@@ -433,6 +437,7 @@ func resyncConn(t *testing.T, c net.Conn) {
                }
                if err != nil {
                        t.Errorf("unexpected Read error: %v", err)
+                       break
                }
        }
        if err := <-errCh; err != nil {