From e13001eddf9ef3b326c800bdc33b2cb7fbc8b1b2 Mon Sep 17 00:00:00 2001 From: Lon Ingram Date: Sun, 10 Aug 2014 23:33:24 -0500 Subject: [PATCH] don't run out of ports quite so fast --- test/browser-runner.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/browser-runner.js b/test/browser-runner.js index f76e8fae0c..128f1b4038 100644 --- a/test/browser-runner.js +++ b/test/browser-runner.js @@ -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'); @@ -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