diff --git a/src/cmd/dist/test.go b/src/cmd/dist/test.go index 9e7205f56e..5ecef4494d 100644 --- a/src/cmd/dist/test.go +++ b/src/cmd/dist/test.go @@ -326,8 +326,6 @@ func (t *tester) registerStdTest(pkg string) { } if t.compileOnly { args = append(args, "-run=^$") - } else if goos == "js" && goarch == "wasm" { - args = append(args, "-run=^Test") // exclude examples; Issue 25913 } args = append(args, stdMatches...) cmd := exec.Command("go", args...) @@ -1270,9 +1268,6 @@ func (t *tester) runFlag(rx string) string { if t.compileOnly { return "-run=^$" } - if rx == "" && goos == "js" && goarch == "wasm" { - return "-run=^Test" // exclude examples; Issue 25913 - } return "-run=" + rx }