Ignore Zotero.Server.init() error in Translate tests if already runnning

This commit is contained in:
Adomas Venčkauskas 2018-08-29 13:08:06 +03:00
parent 53fd416011
commit 6ec6790265

View file

@ -125,7 +125,11 @@ async function setupAttachmentEndpoints() {
}
}
Zotero.Prefs.set("httpServer.enabled", true);
await Zotero.Server.init();
try {
await Zotero.Server.init();
} catch (e) {
// If server is already running we can ignore the error
}
}
describe("Zotero.Translate", function() {