DEV-4309 race bring issue from public (#1748)

* chore(test): restore test.mjs to how it was before

* chore(race_test): remove comments
This commit is contained in:
eslopfer 2023-01-30 07:25:13 +00:00 committed by GitHub
parent 41fc91e649
commit af780cabea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 4 deletions

View File

@ -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)

View File

@ -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')
}