sclevine / agouti

A WebDriver client and acceptance testing library for Go
MIT License
821 stars 103 forks source link

WASM support #173

Closed elgohr closed 6 years ago

elgohr commented 6 years ago

When I try to use Agouti in a WASM setup $ GOOS=js GOARCH=wasm go test, it errors with

github.com/onsi/ginkgo/internal/specrunner
../../../../../pkg/mod/github.com/onsi/ginkgo@v1.6.0/internal/specrunner/spec_runner.go:220:33: undefined: syscall.SIGTERM
../../../../../pkg/mod/github.com/onsi/ginkgo@v1.6.0/internal/specrunner/spec_runner.go:245:33: undefined: syscall.SIGTERM
github.com/sclevine/agouti/api/internal/service
../../../../../pkg/mod/github.com/sclevine/agouti@v3.0.0+incompatible/api/internal/service/service.go:81:34: undefined: syscall.SIGTERM

When I don't set GOOS and GOARCH the application code doesn't compile.

This is a little annoying as it often breaks my flow.

Workaround: Move agouti tests in a separate package and run the tests without GOOS and GOARCH

I know that this is not an agouti-only issue, but agouti is next to the browser.

elgohr commented 6 years ago

Fixed in https://github.com/golang/go/issues/28719