Skip to content

Commit 68c54ab

Browse files
client: skip test on js
Since it doesn't support doing things with sockets. Updates golang/go#46419. Change-Id: I22c86706d5ab9ffc6b62ca850aab6621eddedea7 Reviewed-on: https://go-review.googlesource.com/c/vulndb/+/324089 Trust: Roland Shoemaker <[email protected]> Run-TryBot: Roland Shoemaker <[email protected]> TryBot-Result: Go Bot <[email protected]> Reviewed-by: Filippo Valsorda <[email protected]>
1 parent 88cf122 commit 68c54ab

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

client/client_test.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import (
1111
"net/http"
1212
"os"
1313
"path"
14+
"runtime"
1415
"testing"
1516
"time"
1617

@@ -90,6 +91,10 @@ func localDB(t *testing.T) (string, error) {
9091
}
9192

9293
func TestClient(t *testing.T) {
94+
if runtime.GOOS == "js" {
95+
t.Skip("skipping test: no network on js")
96+
}
97+
9398
// Create a local http database.
9499
http.HandleFunc("/golang.org/example/one.json", serveTestVuln1)
95100
http.HandleFunc("/golang.org/example/two.json", serveTestVuln2)

0 commit comments

Comments
 (0)