]> Cypherpunks repositories - gostls13.git/commitdiff
net/http/httputil: skip new test on Plan 9
authorIan Lance Taylor <iant@golang.org>
Tue, 4 Mar 2025 18:07:15 +0000 (10:07 -0800)
committerGopher Robot <gobot@golang.org>
Tue, 4 Mar 2025 18:31:25 +0000 (10:31 -0800)
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>

src/net/http/httputil/reverseproxy_test.go

index f089ce0574be7156f26018abca9c753461f776e9..a826dc82feb4c1bd0b7ef05862537a8b18e77786 100644 (file)
@@ -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 {