mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-18 14:56:07 +00:00
Bug 1185629 - ensure Sync tests arrange for an auto-selected allowed port for its test servers. r=oeger
--HG-- extra : rebase_source : 628c7904e62a56a4c7512819a48f87db6b7052d0
This commit is contained in:
parent
a97c063fd7
commit
8ccf1e4f1f
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user