Commit c4113ab
fix(telemetry): always remove beforeExit handler on re-init
The handler removal was inside if (client?.getOptions().enabled), so
calling initSentry(false) in test afterEach hooks never cleaned up the
handler registered by the prior initSentry(true) call. The stale handler
kept the event loop alive after all tests finished, causing the bun
process to hang indefinitely and the CI Unit Tests step to never complete.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent dcca225 commit c4113ab
1 file changed
+11
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
405 | 405 | | |
406 | 406 | | |
407 | 407 | | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
408 | 419 | | |
409 | 420 | | |
410 | 421 | | |
| |||
442 | 453 | | |
443 | 454 | | |
444 | 455 | | |
445 | | - | |
446 | | - | |
447 | | - | |
448 | 456 | | |
449 | | - | |
450 | | - | |
451 | | - | |
452 | 457 | | |
453 | 458 | | |
454 | 459 | | |
| |||
0 commit comments