Bug 1402248 - Disable idle-daily during mochitests to avoid possible background interactions that might cause intermittents. r?jmaher
Set the idle preference to be the current time, so that idle-daily won't kick in for 24 hours.
MozReview-Commit-ID: 6OJCSm8RaeZ
--- a/testing/mochitest/runtests.py
+++ b/testing/mochitest/runtests.py
@@ -1792,16 +1792,20 @@ toolbar#nav-bar {
options.extraPrefs.append(
"browser.tabs.remote.autostart=%s" %
('true' if options.e10s else 'false'))
options.extraPrefs.append(
"dom.ipc.tabs.nested.enabled=%s" %
('true' if options.nested_oop else 'false'))
+ options.extraPrefs.append(
+ "idle.lastDailyNotification=%d" %
+ (int(time.time()) * 1000))
+
# get extensions to install
extensions = self.getExtensionsToInstall(options)
# preferences
preferences = [
os.path.join(
SCRIPT_DIR,
'profile_data',