Fix test failures on Linux due to slow translator initialization

Not sure why translator initialization is so slow on Linux, but this is
a temporary fix. More of these are probably needed.
This commit is contained in:
Dan Stillman 2016-08-25 12:37:51 -04:00
parent bdec4b119f
commit c310c59d32

View file

@ -229,6 +229,10 @@ describe("Zotero.FeedItem", function () {
var win; var win;
before(function* () { before(function* () {
// TEMP: Fix for slow translator initialization on Linux/Travis
this.timeout(20000);
yield Zotero.Translators.init();
// Needs an open window to be able to create a hidden window for translation // Needs an open window to be able to create a hidden window for translation
win = yield loadBrowserWindow(); win = yield loadBrowserWindow();
}); });