Let a listener's teardown run last and answer the sends the tests left hanging

This commit is contained in:
2026-08-30 22:03:23 +02:00
parent 427565ed3e
commit 685495f534
7 changed files with 41 additions and 29 deletions
-1
View File
@@ -57,7 +57,6 @@ Rules the API follows:
| Merged multipart DLRs including across a reconnect, reassembly bounds, per-send abort, the segment cap | `test/session-extras.test.ts` |
| A draining `close()` and `unbind()`, bounded by `shutdownTimeout` or an abort | `test/session-extras.test.ts` |
| Every runnable README example | `test/readme.test.ts` |
| Teardown that survives a failing assertion, so a broken test reports rather than hangs | `test/teardown.ts` |
| Receipt-versus-message classification by `esm_class` | `test/dlr.test.ts`, `test/session.test.ts` |
| A listener that throws, or rejects, reaching `sessionError`/`serverError` rather than the process | `test/session.test.ts`, `test/error-from.test.ts` |
| Cross-checked against node-smpp both ways and over a live session | `test/interop.test.ts` |