zinserjan / wdio-screenshot

A WebdriverIO plugin. Additional commands for taking screenshots with WebdriverIO.
MIT License
108 stars 43 forks source link

Travis CI: switch to container based infrastructure #47

Closed zinserjan closed 7 years ago

zinserjan commented 7 years ago

CI build fails randomly with:

A service failed in the 'onPrepare' hook
Error: Unable to connect to selenium
    at null.hasStarted (/home/travis/build/zinserjan/wdio-screenshot/node_modules/wdio-selenium-standalone-service/node_modules/selenium-standalone/lib/check-started.js:17:10)
    at Timer.listOnTimeout (timers.js:92:15)

Continue...
ERROR: Couldn't connect to selenium server
chrome
Error: Couldn't connect to selenium server
ERROR: Couldn't connect to selenium server
firefox
Error: Couldn't connect to selenium server

Using the container based infrastructure seems to solve this issue. The boot time is also much faster with that.