Log the dropped request, and scope the receipt sentence to a reconnect

This commit is contained in:
2026-09-01 20:53:58 +02:00
parent e6250ef44e
commit 471923a7b6
3 changed files with 14 additions and 5 deletions
+4 -1
View File
@@ -603,7 +603,6 @@ describe('reconnect', () => {
// A response is dispatched before `incomingPduObj`, so only the raw event sees one arrive.
peerOf(smpp).on('incomingPdu', () => { taken++; });
// The answered one is out of the hold and the held one is not, so neither may reach the answer.
assert.match((await answered.sendResp()).err?.message ?? '', /link this message arrived on is gone/);
assert.match((await held.sendResp()).err?.message ?? '', /link this message arrived on is gone/);
@@ -635,6 +634,10 @@ describe('reconnect', () => {
await handled;
assert.equal(messages, 0);
await incoming.handle(submitPdu(2));
assert.equal(messages, 1, 'the harness delivers a message whose link stayed');
});
test('does not reconnect after an explicit close', async t => {