aboutsummaryrefslogtreecommitdiff
path: root/src/net/http/httputil/reverseproxy_test.go
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@golang.org>2025-03-04 10:07:15 -0800
committerGopher Robot <gobot@golang.org>2025-03-04 10:31:25 -0800
commitf95941de4908a45287d700697347aa69d714457b (patch)
tree6b79a7a5b524d971fe808d21b0ed36c3b9c68d50 /src/net/http/httputil/reverseproxy_test.go
parentba3c57fc7ceb6c1158e81ccd8071cdeb7a6d6793 (diff)
downloadgo-f95941de4908a45287d700697347aa69d714457b.tar.xz
net/http/httputil: skip new test on Plan 9
TestReverseProxyWebSocketHalfTCP requires half closed connections, which aren't supported on Plan 9. For #35892 Fixes #72095 Change-Id: I64b458bc15ac3b8eda43dc871bf67ada32a59708 Reviewed-on: https://go-review.googlesource.com/c/go/+/654636 Reviewed-by: Ian Lance Taylor <iant@google.com> Auto-Submit: Ian Lance Taylor <iant@golang.org> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Damien Neil <dneil@google.com> Reviewed-by: David du Colombier <0intro@gmail.com> Auto-Submit: Ian Lance Taylor <iant@google.com>
Diffstat (limited to 'src/net/http/httputil/reverseproxy_test.go')
-rw-r--r--src/net/http/httputil/reverseproxy_test.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/net/http/httputil/reverseproxy_test.go b/src/net/http/httputil/reverseproxy_test.go
index f089ce0574..a826dc82fe 100644
--- a/src/net/http/httputil/reverseproxy_test.go
+++ b/src/net/http/httputil/reverseproxy_test.go
@@ -23,6 +23,7 @@ import (
"net/url"
"os"
"reflect"
+ "runtime"
"slices"
"strconv"
"strings"
@@ -1560,6 +1561,11 @@ func TestReverseProxyWebSocketHalfTCP(t *testing.T) {
// - that closing the write stream is propagated through the proxy and results in reading
// EOF at the other end of the connection
+ switch runtime.GOOS {
+ case "plan9":
+ t.Skipf("not supported on %s", runtime.GOOS)
+ }
+
mustRead := func(t *testing.T, conn *net.TCPConn, msg string) {
b := make([]byte, len(msg))
if _, err := conn.Read(b); err != nil {