From 078b658cd1e6c3cd37cf898d3f479e7086092d6f Mon Sep 17 00:00:00 2001 From: stanislavkononiuk Date: Tue, 31 Aug 2021 08:37:04 -0700 Subject: [PATCH] all: fix js/android test failures Fixes golang/go#48078 Change-Id: I8669c07e1536b9ce0f0deac0b876d21adf57c5fb Reviewed-on: https://go-review.googlesource.com/c/vulndb/+/346449 Trust: Roland Shoemaker Run-TryBot: Roland Shoemaker TryBot-Result: Go Bot Reviewed-by: Bryan C. Mills --- lint_test.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lint_test.go b/lint_test.go index 7c1f351..10460eb 100644 --- a/lint_test.go +++ b/lint_test.go @@ -7,6 +7,7 @@ package main import ( "io/ioutil" "path/filepath" + "runtime" "strings" "testing" @@ -15,6 +16,13 @@ import ( ) func TestLintReports(t *testing.T) { + if runtime.GOOS == "js" { + t.Skipf("wasm builder does not have network access") + } + if runtime.GOOS == "android" { + t.Skipf("android builder does not have access to reports/") + } + reports, err := ioutil.ReadDir("reports") if err != nil { t.Fatalf("unable to read reports/: %s", err)