Skip to content

Commit

Permalink
test(worker): only check result when all worker ran (#3583)
Browse files Browse the repository at this point in the history
  • Loading branch information
fi3ework committed May 29, 2021
1 parent d78191c commit 4afb743
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/playground/worker/__tests__/worker.spec.ts
Expand Up @@ -27,6 +27,7 @@ const waitSharedWorkerTick = (
// test.concurrent sequential is not guaranteed
// force page to wait to ensure two pages overlap in time
resolvedSharedWorkerCount++
if (resolvedSharedWorkerCount < 2) return

await untilUpdated(() => {
return resolvedSharedWorkerCount === 2 ? 'all pages loaded' : ''
Expand Down

0 comments on commit 4afb743

Please sign in to comment.