Browse Source

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

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

* chore(race_test): remove comments
pull/1776/head
eslopfer 1 year ago committed by GitHub
parent
commit
af780cabea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      js/tests/race_test.js
  2. 2
      js/tests/test.mjs

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

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

Loading…
Cancel
Save