Skip to content

Commit

Permalink
Remove a spurious { retry: 0 } (#1876)
Browse files Browse the repository at this point in the history
This is set in `got_client.js`.
  • Loading branch information
paulmelnikow committed Feb 10, 2020
1 parent e863c84 commit eac299b
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions tests/test_define.js
Expand Up @@ -23,13 +23,10 @@ test('define() is backward compatible', async t => {
])
)

await assertRejects(
got('http://example.test:12345/', { retry: 0 }),
({ statusCode }) => {
t.is(statusCode, 500)
return true
}
)
await assertRejects(got('http://example.test:12345/'), ({ statusCode }) => {
t.is(statusCode, 500)
return true
})
})

test('define() throws when reply is not a numeric string', t => {
Expand Down

0 comments on commit eac299b

Please sign in to comment.