Skip to content

Commit f95941d

Browse files
ianlancetaylorgopherbot
authored andcommitted
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 <[email protected]> Auto-Submit: Ian Lance Taylor <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]> Reviewed-by: Damien Neil <[email protected]> Reviewed-by: David du Colombier <[email protected]> Auto-Submit: Ian Lance Taylor <[email protected]>
1 parent ba3c57f commit f95941d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/net/http/httputil/reverseproxy_test.go

+6
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ import (
2323
"net/url"
2424
"os"
2525
"reflect"
26+
"runtime"
2627
"slices"
2728
"strconv"
2829
"strings"
@@ -1560,6 +1561,11 @@ func TestReverseProxyWebSocketHalfTCP(t *testing.T) {
15601561
// - that closing the write stream is propagated through the proxy and results in reading
15611562
// EOF at the other end of the connection
15621563

1564+
switch runtime.GOOS {
1565+
case "plan9":
1566+
t.Skipf("not supported on %s", runtime.GOOS)
1567+
}
1568+
15631569
mustRead := func(t *testing.T, conn *net.TCPConn, msg string) {
15641570
b := make([]byte, len(msg))
15651571
if _, err := conn.Read(b); err != nil {

0 commit comments

Comments
 (0)