mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-24 21:31:04 +00:00
Bug 1022215 - Increase the number of seconds the sync scheduler tests are willing to wait before failing from 1 to 3. r=markh
MozReview-Commit-ID: IU2LW9xDWDS --HG-- extra : rebase_source : 1df2a13e1fed7ecba83a61f1ccf62cc3c0a18cd1
This commit is contained in:
parent
78b8ab3a9c
commit
6237f6e281
@ -842,9 +842,9 @@ add_identity_test(this, function* test_sync_X_Weave_Backoff() {
|
|||||||
Service.sync();
|
Service.sync();
|
||||||
|
|
||||||
do_check_true(Status.backoffInterval >= BACKOFF * 1000);
|
do_check_true(Status.backoffInterval >= BACKOFF * 1000);
|
||||||
// Allowing 1 second worth of of leeway between when Status.minimumNextSync
|
// Allowing 3 seconds worth of of leeway between when Status.minimumNextSync
|
||||||
// was set and when this line gets executed.
|
// was set and when this line gets executed.
|
||||||
let minimumExpectedDelay = (BACKOFF - 1) * 1000;
|
let minimumExpectedDelay = (BACKOFF - 3) * 1000;
|
||||||
do_check_true(Status.minimumNextSync >= Date.now() + minimumExpectedDelay);
|
do_check_true(Status.minimumNextSync >= Date.now() + minimumExpectedDelay);
|
||||||
|
|
||||||
// Verify that the next sync is actually going to wait that long.
|
// Verify that the next sync is actually going to wait that long.
|
||||||
@ -901,9 +901,9 @@ add_identity_test(this, function* test_sync_503_Retry_After() {
|
|||||||
|
|
||||||
do_check_true(Status.enforceBackoff);
|
do_check_true(Status.enforceBackoff);
|
||||||
do_check_true(Status.backoffInterval >= BACKOFF * 1000);
|
do_check_true(Status.backoffInterval >= BACKOFF * 1000);
|
||||||
// Allowing 1 second worth of of leeway between when Status.minimumNextSync
|
// Allowing 3 seconds worth of of leeway between when Status.minimumNextSync
|
||||||
// was set and when this line gets executed.
|
// was set and when this line gets executed.
|
||||||
let minimumExpectedDelay = (BACKOFF - 1) * 1000;
|
let minimumExpectedDelay = (BACKOFF - 3) * 1000;
|
||||||
do_check_true(Status.minimumNextSync >= Date.now() + minimumExpectedDelay);
|
do_check_true(Status.minimumNextSync >= Date.now() + minimumExpectedDelay);
|
||||||
|
|
||||||
// Verify that the next sync is actually going to wait that long.
|
// Verify that the next sync is actually going to wait that long.
|
||||||
|
Loading…
Reference in New Issue
Block a user