Skip to content

Commit 652c1bf

Browse files
committed
fix regular mode
1 parent acef0c8 commit 652c1bf

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/command/workers/runTests.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,8 @@ initPromise = (async function () {
212212
await runPoolTests()
213213
} else if (mocha.suite.total()) {
214214
await runTests()
215+
await new Promise(resolve => setTimeout(resolve, 100))
216+
parentPort?.close()
215217
} else {
216218
// No tests to run, close the worker
217219
console.error(`[Worker ${workerIndex}] ERROR: No tests found after filtering! Assigned ${tests.length} UIDs but none matched.`)

0 commit comments

Comments
 (0)