adminsettings test: increase jquery.ajax timeout

fix-flaky-adminsettings-test
webzwo0i 2021-06-14 14:06:10 +02:00
parent 5dcb7a7549
commit df8219c66d
1 changed files with 2 additions and 2 deletions

View File

@ -62,7 +62,7 @@ describe('Admin > Settings', function () {
url: new URL('/stats', window.location.href),
method: 'GET',
dataType: 'json',
timeout: 450, // Slightly less than the waitForPromise() interval.
timeout: 650, // Slightly less than the waitForPromise() interval.
});
return httpStartTime;
} catch (err) {
@ -72,7 +72,7 @@ describe('Admin > Settings', function () {
await helper.waitForPromise(async () => {
const startTime = await getStartTime();
return startTime != null && startTime > 0 && Date.now() > startTime;
}, 1000, 500);
}, 1700, 1500);
const clickTime = Date.now();
helper.admin$('#restartEtherpad').click();
await helper.waitForPromise(async () => {