зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
a97c063fd7
Коммит
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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче