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 413061b commit dea0c78
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 @@ -379,9 +379,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 dea0c78

Please sign in to comment.