Skip to content

Commit

Permalink
don't run out of ports quite so fast
Browse files Browse the repository at this point in the history
  • Loading branch information
lawnsea committed Aug 11, 2014
1 parent 85aeefc commit e13001e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/browser-runner.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ var browser;

optimist.
usage('Run the jsdom test suite in a browser via WebDriver').
describe('http-port', 'port to run test server on (defaults to pid + 20000)').
describe('web-driver-port', 'port to run Selenium on (defaults to pid + 20000)').
describe('http-port', 'port to run test server on (defaults to pid + 10000)').
describe('web-driver-port', 'port to run Selenium on (defaults to pid + 10001)').
describe('verbose-web-driver', 'print verbose output from wd to stdout').
describe('verbose-browser-console', 'print browser console to stdout');

Expand All @@ -27,8 +27,8 @@ if (argv.help) {
process.exit();
}

var httpPort = argv['http-port'] || process.pid + 20000;
var wdPort = argv['web-driver-port'] || httpPort + 10000;
var httpPort = argv['http-port'] || process.pid + 10000;
var wdPort = argv['web-driver-port'] || httpPort + 1;

/**
* Return the body of a function as a string
Expand Down

0 comments on commit e13001e

Please sign in to comment.