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 <roland@golang.org>
Run-TryBot: Roland Shoemaker <roland@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Filippo Valsorda <filippo@golang.org>
diff --git a/client/client_test.go b/client/client_test.go
index c9c1eeb..1000797 100644
--- a/client/client_test.go
+++ b/client/client_test.go
@@ -11,6 +11,7 @@
 	"net/http"
 	"os"
 	"path"
+	"runtime"
 	"testing"
 	"time"
 
@@ -90,6 +91,10 @@
 }
 
 func TestClient(t *testing.T) {
+	if runtime.GOOS == "js" {
+		t.Skip("skipping test: no network on js")
+	}
+
 	// Create a local http database.
 	http.HandleFunc("/golang.org/example/one.json", serveTestVuln1)
 	http.HandleFunc("/golang.org/example/two.json", serveTestVuln2)