Re-wrap the shutdown paragraph and leave the throw-versus-rejection note in one place

This commit is contained in:
2026-09-02 12:40:51 +02:00
parent 0d30864886
commit 94184a9c63
2 changed files with 7 additions and 8 deletions
-1
View File
@@ -1456,7 +1456,6 @@ describe('graceful shutdown', () => {
assert.ok((await sent).err instanceof Error);
});
// A rejection leaves the other listeners running, unlike a throw, which stops emit() where it is.
test('waits for the listener still working when another one rejected', async t => {
const smpp = await startServer(t, { shutdownTimeout: 30_000 });
const failed = once<Error>(resolve => {