diff options
Diffstat (limited to 'lib/grunt/utils.js')
| -rw-r--r-- | lib/grunt/utils.js | 7 | 
1 files changed, 3 insertions, 4 deletions
| diff --git a/lib/grunt/utils.js b/lib/grunt/utils.js index ed61a181..3c4b7254 100644 --- a/lib/grunt/utils.js +++ b/lib/grunt/utils.js @@ -253,7 +253,7 @@ module.exports = {        stream: options && options.stream      }; -    args.push('--port=' + this.lastParallelTaskPort); +    args.push('--port=' + this.sauceLabsAvailablePorts.pop());      if (args.indexOf('test:e2e') !== -1 && grunt.option('e2e-browsers')) {        args.push('--browsers=' + grunt.option('e2e-browsers')); @@ -265,10 +265,9 @@ module.exports = {        args.push('--reporters=' + grunt.option('reporters'));      } -    this.lastParallelTaskPort++; -      return task;    }, -  lastParallelTaskPort: 9876 +  // see http://saucelabs.com/docs/connect#localhost +  sauceLabsAvailablePorts: [9000, 9001, 9080, 9090, 9876]  }; | 
