From 7dcfb8076726a3fdd9353b6b8a1f1b6be6811bd6 Mon Sep 17 00:00:00 2001 From: David du Colombier <0intro@gmail.com> Date: Thu, 25 May 2017 03:14:41 +0200 Subject: [PATCH] nettest: skip testConcurrentMethods on Plan 9 This test is running out of memory on Plan 9. Updates golang/go#20489. Change-Id: I79cdea9c31f396b6ef5c47474674ad736362b232 Reviewed-on: https://go-review.googlesource.com/44130 Reviewed-by: Brad Fitzpatrick --- nettest/conntest.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/nettest/conntest.go b/nettest/conntest.go index f5b0b7bc..5bd3a8c6 100644 --- a/nettest/conntest.go +++ b/nettest/conntest.go @@ -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