|
@@ -12,6 +12,7 @@ import (
|
|
|
"io/ioutil"
|
|
"io/ioutil"
|
|
|
"math/rand"
|
|
"math/rand"
|
|
|
"net"
|
|
"net"
|
|
|
|
|
+ "runtime"
|
|
|
"sync"
|
|
"sync"
|
|
|
"testing"
|
|
"testing"
|
|
|
"time"
|
|
"time"
|
|
@@ -341,6 +342,9 @@ func testCloseTimeout(t *testing.T, c1, c2 net.Conn) {
|
|
|
// testConcurrentMethods tests that the methods of net.Conn can safely
|
|
// testConcurrentMethods tests that the methods of net.Conn can safely
|
|
|
// be called concurrently.
|
|
// be called concurrently.
|
|
|
func testConcurrentMethods(t *testing.T, c1, c2 net.Conn) {
|
|
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)
|
|
go chunkedCopy(c2, c2)
|
|
|
|
|
|
|
|
// The results of the calls may be nonsensical, but this should
|
|
// The results of the calls may be nonsensical, but this should
|