commit 6e4d6a2820e1d256ae8f343bba83c348418c470e
parent 18d0e980d1d4acb1325006e533a2135fda9a451f
Author: Dan Stillman <dstillman@zotero.org>
Date: Thu, 1 Mar 2018 03:45:58 -0500
Disable background full-text processing during tests
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git 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) {