Skip to content

Commit 577e44a

Browse files
neildgopherbot
authored andcommitted
quic: skip leaked goroutine check on GOOS=js
Fixes golang/go#64620 Change-Id: I3b5ff4d1e1132a47b7cc7eb00861e9f7b76f8764 Reviewed-on: https://go-review.googlesource.com/c/net/+/548455 Auto-Submit: Damien Neil <dneil@google.com> Reviewed-by: Bryan Mills <bcmills@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
1 parent 65efbad commit 577e44a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

internal/quic/main_test.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,11 @@ func TestMain(m *testing.M) {
2222
//
2323
// Checking after every test makes it easier to tell which test is the culprit,
2424
// but checking once at the end is faster and less likely to miss something.
25+
if runtime.GOOS == "js" {
26+
// The js-wasm runtime creates an additional background goroutine.
27+
// Just skip the leak check there.
28+
return
29+
}
2530
start := time.Now()
2631
warned := false
2732
for {

0 commit comments

Comments
 (0)