From af780cabeacdaa1edac76ce3e3d62cca764cfa59 Mon Sep 17 00:00:00 2001 From: eslopfer Date: Mon, 30 Jan 2023 07:25:13 +0000 Subject: [PATCH] DEV-4309 race bring issue from public (#1748) * chore(test): restore test.mjs to how it was before * chore(race_test): remove comments --- js/tests/race_test.js | 3 --- js/tests/test.mjs | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/js/tests/race_test.js b/js/tests/race_test.js index 5834c89f..b42888b4 100644 --- a/js/tests/race_test.js +++ b/js/tests/race_test.js @@ -1,6 +1,3 @@ -// @davhojt commented out Promise.race as a quick fix. -// @eslopfer is working on a fix on a fix on branch: DEV-4309-race-bring-issue-from-public -// Promise.race = undefined // /*/ // ⚡ export const tests = [] const t = (f) => tests.push(f) diff --git a/js/tests/test.mjs b/js/tests/test.mjs index 5c6c860d..ad9b866e 100644 --- a/js/tests/test.mjs +++ b/js/tests/test.mjs @@ -180,7 +180,7 @@ const runTests = async ({ url, path, code }) => { new Promise((s, f) => { timeout = setTimeout(f, 60000, Error('Time limit reached (1min)')) }), - ]) + ]) if (!(await waitWithTimeout) && !isDOM) { throw Error('Test failed') }