From df8219c66d9a4f03a9607141e53c0a49efb6f14e Mon Sep 17 00:00:00 2001 From: webzwo0i Date: Mon, 14 Jun 2021 14:06:10 +0200 Subject: [PATCH] adminsettings test: increase jquery.ajax timeout --- src/tests/frontend/specs/adminsettings.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tests/frontend/specs/adminsettings.js b/src/tests/frontend/specs/adminsettings.js index 3eb6e41a6..414774aca 100644 --- a/src/tests/frontend/specs/adminsettings.js +++ b/src/tests/frontend/specs/adminsettings.js @@ -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 () => {