Skip to content

Commit

Permalink
fixup! feat(http-client): Retry requests that failed with closed conn…
Browse files Browse the repository at this point in the history
…ection
  • Loading branch information
bpinto committed Jan 28, 2022
1 parent d90ca74 commit 75e10df
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/StripeResource.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -376,9 +376,9 @@ describe('StripeResource', () => {
it('throws on multiple closed connection errors', (done) => {
nock(`https://${options.host}`)
.post(options.path, options.params)
.replyWithError({ code: 'ECONNRESET' })
.replyWithError({code: 'ECONNRESET'})
.post(options.path, options.params)
.replyWithError({ code: 'ECONNRESET' });
.replyWithError({code: 'ECONNRESET'});

realStripe.charges.create(options.data, (err) => {
expect(err.detail.code).to.deep.equal('ECONNRESET');
Expand Down

0 comments on commit 75e10df

Please sign in to comment.