Bug 831404 - More attempts to fix intermittent failure; r=orange

This commit is contained in:
Gregory Szorc 2013-08-19 19:22:27 -07:00
parent c3e85d5e94
commit 6c8721df14

View File

@ -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) {