Commit 6c2b3af
committed
fix(test): force process exit after all tests finish
In debug builds, a Node.js-internal referenced async handle keeps the
event loop alive after all tests complete. This is not caused by the
native addon — all addon handles are verified stopped via per-object
create/stop tracking. This does not occur in release builds.
Use tape's onFinish callback to exit with the appropriate code.1 parent 002d713 commit 6c2b3af
1 file changed
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
1 | 2 | | |
2 | 3 | | |
3 | 4 | | |
4 | 5 | | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
5 | 12 | | |
6 | 13 | | |
7 | 14 | | |
| |||
0 commit comments