Skip to content

Commit

Permalink
quic: skip leaked goroutine check on GOOS=js
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
neild authored and gopherbot committed Dec 8, 2023
1 parent 65efbad commit 577e44a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions internal/quic/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@ func TestMain(m *testing.M) {
//
// Checking after every test makes it easier to tell which test is the culprit,
// but checking once at the end is faster and less likely to miss something.
if runtime.GOOS == "js" {
// The js-wasm runtime creates an additional background goroutine.
// Just skip the leak check there.
return
}
start := time.Now()
warned := false
for {
Expand Down

0 comments on commit 577e44a

Please sign in to comment.