Skip to content

Commit

Permalink
Corrects unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
LiuJoyceC committed Sep 2, 2016
1 parent 783a1ab commit 0c52b9f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/util.spec.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -833,9 +833,9 @@ if AWS.util.isNode()
expect(spy.calls.length).to.equal(options.maxRetries + 1)
done()

it 'retries errors with status code 4xx with retry-after header', (done) ->
it 'retries errors with status code 429', (done) ->
app = (req, resp) ->
resp.writeHead(400, {'retry-after': 1})
resp.writeHead(429, {})
resp.write('FOOBAR')
resp.end()
sendRequest (err, data) ->
Expand Down

0 comments on commit 0c52b9f

Please sign in to comment.