Let a signal abort a send queued behind a full send window (#90)
* Regression tests for aborting a send queued behind a full window * Let a signal abort a send queued behind a full send window * Log a queued send, tighten its regression tests and settle the decision record * Take the send window's queue off an array so an abort cannot stall the loop --------- Co-authored-by: Mikael Göransson <mikael.goransson@timewave.se>
This commit is contained in:
@@ -1315,6 +1315,14 @@ describe('robustness', () => {
|
||||
to: '46709771337',
|
||||
})));
|
||||
|
||||
const long = await session.sendSms({
|
||||
from: '46701113311',
|
||||
message: 'x'.repeat(500),
|
||||
to: '46709771337',
|
||||
});
|
||||
|
||||
assert.equal(long.err, undefined, 'more segments than slots still completes, a slot at a time');
|
||||
assert.equal(long.smsIds.length, 4);
|
||||
assert.ok(peak <= 2, `peak was ${String(peak)}`);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user