mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 22:01:30 +00:00
Bug 831404 - More attempts to fix intermittent failure; r=orange
This commit is contained in:
parent
a8306550ce
commit
6d11123145
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user