Ignore Zotero.Server.init() error in Translate tests if already runnning
This commit is contained in:
parent
53fd416011
commit
6ec6790265
1 changed files with 5 additions and 1 deletions
|
@ -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() {
|
||||
|
|
Loading…
Reference in a new issue