diff --git a/test-tap/fixture/fail-fast/multiple-files/fails.cjs b/test-tap/fixture/fail-fast/multiple-files/fails.cjs index f405ec691..c43c6c708 100644 --- a/test-tap/fixture/fail-fast/multiple-files/fails.cjs +++ b/test-tap/fixture/fail-fast/multiple-files/fails.cjs @@ -1,13 +1,20 @@ const test = require('../../../../entrypoints/main.cjs'); +// Allow some time for all workers to launch. +const grace = new Promise(resolve => { + setTimeout(resolve, 500); +}); + test('first pass', t => { t.pass(); }); -test('second fail', t => { +test('second fail', async t => { + await grace; t.fail(); }); -test('third pass', t => { +test('third pass', async t => { + await grace; t.pass(); });