Skip to content

Commit ae8ef82

Browse files
committed
Suppress Example_compressingReader in compress/gzip.
The example relies on the local HTTP server, which is not fully supported by GopherJS. Node 18 provides global Fetch API, so the net/http package no longer falls back onto fake networking automatically.
1 parent ad99047 commit ae8ef82

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
//go:build js && wasm
2+
// +build js,wasm
3+
4+
package gzip_test
5+
6+
import (
7+
"fmt"
8+
)
9+
10+
// The test relies on a local HTTP server, which is not supported under NodeJS.
11+
func Example_compressingReader() {
12+
fmt.Println("the data to be compressed")
13+
}

0 commit comments

Comments
 (0)