wasm-pack-template
wasm-pack-template copied to clipboard
I cannot get headless tests to run in Travis CI
Summary
When I run a similar project in Travis CI I get this error:
Running headless tests in Chrome with `/Users/travis/Library/Caches/.wasm-pack/chromedriver-b5d7e439698af816/chromedriver`
driver status: signal: 9
driver stdout:
Starting ChromeDriver 2.46.628411 (3324f4c8be9ff2f70a05a30ebc72ffb013e1a71e) on port 59072
Only local connections are allowed.
Please protect ports used by ChromeDriver and related test frameworks to prevent access by malicious code.
So I am not sure how you are able to get travis to run --chrome --headless
Any ideas?
BTW: In "-script" I see "cd testing" but there is no such folder. I don't see it created during setup, but maybe wrong.
@andrewdavidmackenzie Did you by any chance find a solution? I'm having the same issue on CircleCI.
Running the same command in the same Docker container works fine on my machine, so I'm guessing it's a CI quirk.
Issue is also found here: https://github.com/rustwasm/wasm-pack/issues/611 Hopefully fix by https://github.com/rustwasm/wasm-pack/pull/706
Current workaround: https://github.com/rustwasm/wasm-pack/issues/611#issuecomment-522093207
I used the following command npm installl -g [email protected]
to fix the issue
npm i -g [email protected]
worked for me for Chromium 80.0.3987.162