cli/e2e.js
function killServers(exitCode) {
  logger.info('Cleaning up running servers');

  if (seleniumServer) {
    logger.info('Closing selenium server');
    seleniumServer.kill();
    seleniumServer = null;
  }

  // Catch protractor's "Kitchen Sink" error.
  if (exitCode === 199) {
    logger.warn('Supressing protractor\'s "kitchen sink" error 199');
    exitCode = 0;
  }

  server.stop();
  logger.info(`Execution Time: ${(new Date().getTime() - start) / 1000} seconds`);
  logger.info(`Exiting process with ${exitCode}`);
  process.exit(exitCode || 0);
}
function killServers(exitCode) {
  logger.info('Cleaning up running servers');

  if (seleniumServer) {
    logger.info('Closing selenium server');
    seleniumServer.kill();
    seleniumServer = null;
  }

  // Catch protractor's "Kitchen Sink" error.
  if (exitCode === 199) {
    logger.warn('Supressing protractor\'s "kitchen sink" error 199');
    exitCode = 0;
  }

  server.stop();
  logger.info(`Execution Time: ${(new Date().getTime() - start) / 1000} seconds`);
  logger.info(`Exiting process with ${exitCode}`);
  process.exit(exitCode || 0);
}
function killServers ( exitCode ) { logger . info ( 'Cleaning up running servers' ) ; if ( seleniumServer ) { logger . info ( 'Closing selenium server' ) ; seleniumServer . kill ( ) ; seleniumServer = null ; } // Catch protractor's "Kitchen Sink" error. if ( exitCode === 199 ) { logger . warn ( 'Supressing protractor\'s "kitchen sink" error 199' ) ; exitCode = 0 ; } server . stop ( ) ; logger . info ( ` ${ ( new Date ( ) . getTime ( ) - start ) / 1000 } ` ) ; logger . info ( ` ${ exitCode } ` ) ; process . exit ( exitCode || 0 ) ; }
Handles killing off the selenium and webpack servers.
@name killServers
Handles killing off the selenium and webpack servers .