Skip to content

Commit

Permalink
chore(start): send a shutdown command on the same port for the seleni…
Browse files Browse the repository at this point in the history
…um server.
  • Loading branch information
blue-star-o authored and cnishina committed Jun 18, 2016
1 parent d937245 commit cd60fc4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/cmds/start.ts
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,8 @@ function start(options: Options) {
process.stdin.resume();
process.stdin.on('data', (chunk: Buffer) => {
logger.info('Attempting to shut down selenium nicely');
http.get('http://localhost:4444/selenium-server/driver/?cmd=shutDownSeleniumServer');
let port = seleniumPort || '4444';
http.get('http://localhost:' + port + '/selenium-server/driver/?cmd=shutDownSeleniumServer');
killAndroid();
killAppium();
});
Expand Down

0 comments on commit cd60fc4

Please sign in to comment.