From 6e4d6a2820e1d256ae8f343bba83c348418c470e Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Thu, 1 Mar 2018 03:45:58 -0500 Subject: [PATCH] Disable background full-text processing during tests --- chrome/content/zotero/xpcom/fulltext.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/chrome/content/zotero/xpcom/fulltext.js b/chrome/content/zotero/xpcom/fulltext.js index b35f0c0d5d..74d10c3bfb 100644 --- a/chrome/content/zotero/xpcom/fulltext.js +++ b/chrome/content/zotero/xpcom/fulltext.js @@ -820,6 +820,8 @@ Zotero.Fulltext = Zotero.FullText = new function(){ * Start the idle observer for the background content processor */ this.registerContentProcessor = function () { + // Don't start idle observer during tests + if (Zotero.test) return; if (!Zotero.Prefs.get('sync.fulltext.enabled')) return; if (!_idleObserverIsRegistered) {