зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
78b8ab3a9c
Коммит
6237f6e281
|
@ -842,9 +842,9 @@ add_identity_test(this, function* test_sync_X_Weave_Backoff() {
|
|||
Service.sync();
|
||||
|
||||
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.
|
||||
let minimumExpectedDelay = (BACKOFF - 1) * 1000;
|
||||
let minimumExpectedDelay = (BACKOFF - 3) * 1000;
|
||||
do_check_true(Status.minimumNextSync >= Date.now() + minimumExpectedDelay);
|
||||
|
||||
// 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.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.
|
||||
let minimumExpectedDelay = (BACKOFF - 1) * 1000;
|
||||
let minimumExpectedDelay = (BACKOFF - 3) * 1000;
|
||||
do_check_true(Status.minimumNextSync >= Date.now() + minimumExpectedDelay);
|
||||
|
||||
// Verify that the next sync is actually going to wait that long.
|
||||
|
|
Загрузка…
Ссылка в новой задаче