Bug 1697976: Increase timeout for test test_break_endless_upgrade_downgrade_loop.html. r=valentin

Differential Revision: https://phabricator.services.mozilla.com/D108401
This commit is contained in:
Christoph Kerschbaumer 2021-03-15 15:06:15 +00:00
Родитель a6a1bc2839
Коммит 659f418fa5
1 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -25,11 +25,11 @@ SimpleTest.waitForExplicitFinish();
const REQUEST_URL =
"http://example.com/tests/dom/security/test/https-only/file_break_endless_upgrade_downgrade_loop.sjs";
function resolveAfter5Seconds() {
function resolveAfter6Seconds() {
return new Promise(resolve => {
setTimeout(() => {
resolve();
}, 5000);
}, 6000);
});
}
@ -54,7 +54,7 @@ async function runTests() {
// provide enough time for:
// the redirects to occur, and the error page to be displayed
await resolveAfter5Seconds();
await resolveAfter6Seconds();
await SpecialPowers.spawn(winTest1, ["test1"], verifyResult);
winTest1.close();