Accept HTTP/429 as a "rate-limited" status code
This commit is contained in:
parent
7431f151b2
commit
45289f519a
9 changed files with 156 additions and 16 deletions
|
@ -247,6 +247,20 @@ describe('sendToGroup', () => {
|
|||
'testing OutgoingMessageError'
|
||||
)
|
||||
);
|
||||
assert.isTrue(
|
||||
_shouldFailSend(
|
||||
new OutgoingMessageError(
|
||||
'something',
|
||||
null,
|
||||
null,
|
||||
new HTTPError('something', {
|
||||
code: 429,
|
||||
headers: {},
|
||||
})
|
||||
),
|
||||
'testing OutgoingMessageError'
|
||||
)
|
||||
);
|
||||
assert.isTrue(
|
||||
_shouldFailSend(
|
||||
new SendMessageNetworkError(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue