diff --git a/services/datareporting/tests/xpcshell/test_policy.js b/services/datareporting/tests/xpcshell/test_policy.js index 63c4f1b2b2de..297fbcd728b7 100644 --- a/services/datareporting/tests/xpcshell/test_policy.js +++ b/services/datareporting/tests/xpcshell/test_policy.js @@ -668,11 +668,11 @@ add_test(function test_polling_implicit_acceptance() { // Redefine intervals with shorter, test-friendly values. Object.defineProperty(policy, "POLL_INTERVAL_MSEC", { - value: 1000, + value: 250, }); Object.defineProperty(policy, "IMPLICIT_ACCEPTANCE_INTERVAL_MSEC", { - value: 3000, + value: 700, }); let count = 0; @@ -707,7 +707,7 @@ add_test(function test_polling_implicit_acceptance() { listener.lastNotifyRequest.onUserNotifyComplete(); } - if (delta <= (4000)) { + if (delta <= (policy.IMPLICIT_ACCEPTANCE_INTERVAL_MSEC + policy.POLL_INTERVAL_MSEC)) { do_check_false(policy.dataSubmissionPolicyAccepted); do_check_eq(listener.requestDataUploadCount, 0); } else if (count > 3) {