Commit c0d5e95
fix: properly await worker teardown in integration tests to prevent open handles
AfterAll was calling worker.close() with a callback but not awaiting it,
so Cucumber resolved the hook immediately leaving the HTTP server, Redis,
and DB connections open. Node.js would then hang indefinitely waiting for
those handles to close.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 3cb65a6 commit c0d5e95
1 file changed
Lines changed: 9 additions & 6 deletions
File tree
- test/integration/features
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
67 | 70 | | |
68 | 71 | | |
69 | 72 | | |
| |||
0 commit comments