Actually fix NS_ERROR_SOCKET_ADDRESS_IN_USE during tests

This commit is contained in:
Dan Stillman 2023-08-09 08:04:57 -04:00
parent 5e27a75010
commit 69ba2310a2
2 changed files with 2 additions and 2 deletions

View file

@ -329,7 +329,7 @@ describe("Zotero.Attachments", function() {
Components.utils.import("resource://zotero-unit/httpd.js");
var testServerPath, httpd, prefix;
var testServerPortMin = 16213;
var testServerPortMax = testServerPort + 50;
var testServerPortMax = testServerPortMin + 20;
var testServerPort = testServerPortMin;
before(async function () {

View file

@ -144,7 +144,7 @@ describe("ZoteroPane", function() {
Components.utils.import("resource://zotero-unit/httpd.js");
var apiKey = Zotero.Utilities.randomString(24);
var testServerPortMin = 16213;
var testServerPortMax = testServerPort + 20;
var testServerPortMax = testServerPortMin + 20;
var testServerPort = testServerPortMin;
var baseURL;
var httpd;