Bug 1185629 - ensure Sync tests arrange for an auto-selected allowed port for its test servers. r=oeger

This commit is contained in:
Mark Hammond 2015-08-11 10:58:54 +10:00
parent 52743017b9
commit 3679ce9f84

View File

@ -545,13 +545,13 @@ SyncServer.prototype = {
* Start the SyncServer's underlying HTTP server.
*
* @param port
* The numeric port on which to start. A falsy value implies the
* default, a randomly chosen port.
* The numeric port on which to start. -1 implies the default, a
* randomly chosen port.
* @param cb
* A callback function (of no arguments) which is invoked after
* startup.
*/
start: function start(port, cb) {
start: function start(port = -1, cb) {
if (this.started) {
this._log.warn("Warning: server already started on " + this.port);
return;