Compare commits

...

2 Commits

Author SHA1 Message Date
webzwo0i 47cac74534 try 2021-06-14 14:59:06 +02:00
webzwo0i df8219c66d adminsettings test: increase jquery.ajax timeout 2021-06-14 14:42:37 +02:00
1 changed files with 4 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) {
@ -71,8 +71,10 @@ describe('Admin > Settings', function () {
};
await helper.waitForPromise(async () => {
const startTime = await getStartTime();
console.log('starttime', startTime);
console.log(typeof startTime);
return startTime != null && startTime > 0 && Date.now() > startTime;
}, 1000, 500);
}, 1700, 750);
const clickTime = Date.now();
helper.admin$('#restartEtherpad').click();
await helper.waitForPromise(async () => {