commit da1dd752658291416b50d5b13b30d57b4b9d73fc
parent e01cb38c5d11b4984f0d41926ff9694882830f22
Author: Dan Stillman <dstillman@zotero.org>
Date: Fri, 8 Dec 2017 00:10:59 -0500
Don't compress uploaded data in tests
It would be better to handle this automatically in Sinon, but as it is
uploads are compressed if they're bigger than an arbitrary limit, which
can break tests unexpectedly if they check req.requestBody.
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/test/runtests.sh b/test/runtests.sh
@@ -133,6 +133,8 @@ user_pref("browser.tabs.remote.autostart.2", false);
user_pref("browser.uitour.enabled", false);
user_pref("browser.shell.checkDefaultBrowser", false);
user_pref("dom.max_chrome_script_run_time", 0);
+// It would be better to leave this on and handle it in Sinon's FakeXMLHttpRequest
+user_pref("extensions.zotero.sync.server.compressData", false);
user_pref("extensions.zotero.debug.log", $DEBUG);
user_pref("extensions.zotero.debug.level", $DEBUG_LEVEL);
user_pref("extensions.zotero.debug.time", $DEBUG);