Skip to content

Commit

Permalink
singleflight: skip tests involving exec on js/wasm
Browse files Browse the repository at this point in the history
The js port does not yet support os/exec.

Updates golang/go#37100
Updates golang/go#33519

Change-Id: I9608b7febfdc274dc1b9f34a92d00ef7bea4e13c
Reviewed-on: https://go-review.googlesource.com/c/sync/+/260717
Trust: Bryan C. Mills <bcmills@google.com>
Run-TryBot: Bryan C. Mills <bcmills@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
  • Loading branch information
anatoliinzrnk committed Oct 8, 2020
1 parent a9d8ffc commit a6e81cc
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions singleflight/singleflight_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,10 @@ func TestGoexitDo(t *testing.T) {
}

func TestPanicDoChan(t *testing.T) {
if runtime.GOOS == "js" {
t.Skipf("js does not support exec")
}

if os.Getenv("TEST_PANIC_DOCHAN") != "" {
defer func() {
recover()
Expand Down Expand Up @@ -291,6 +295,10 @@ func TestPanicDoChan(t *testing.T) {
}

func TestPanicDoSharedByDoChan(t *testing.T) {
if runtime.GOOS == "js" {
t.Skipf("js does not support exec")
}

if os.Getenv("TEST_PANIC_DOCHAN") != "" {
blocked := make(chan struct{})
unblock := make(chan struct{})
Expand Down

0 comments on commit a6e81cc

Please sign in to comment.