Commit 0df3380
fix(test): close leaked embedded worker in bug-23 (CI unhandled error)
bug-23-scheduler-job-name created a new Worker('test-job-name', {embedded}) inside a Promise executor and never closed it, so it polled for the whole suite. After the 2.8.14 commit added 9 test files, the suite timeline shifted enough that a stray poll coincided with another test's global disk-IO injection: pull -> getSharedManager -> migrate threw SQLITE_IOERR, handlePullError emitted 'error' with no listener -> 'Unhandled error between tests' (exit 1). Capture + await worker.close() to remove the leak. Test-only; no shipped-code change, so still 2.8.14.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent 999b6f0 commit 0df3380
1 file changed
Lines changed: 7 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
| 60 | + | |
60 | 61 | | |
61 | | - | |
| 62 | + | |
62 | 63 | | |
63 | 64 | | |
64 | 65 | | |
| |||
67 | 68 | | |
68 | 69 | | |
69 | 70 | | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
70 | 76 | | |
71 | 77 | | |
72 | 78 | | |
| |||
0 commit comments