HashNuke / hound

Elixir library for writing integration tests and browser automation
http://hexdocs.pm/hound
MIT License
1.36k stars 145 forks source link

Add request retries configuration. #236

Closed eduardodflpereira closed 5 years ago

eduardodflpereira commented 5 years ago

This pull request adds a config flag, that allows defining a number of retries in case of request failure.

The default retry number is 0, maintaining the old behaviour as default.

This is relevant for scenarios where the machine you are running your integration tests might be starved for resources and the request gets timed out.

danhper commented 5 years ago

Thanks for the PR. Could you take a look at the comment I left, please? Thanks again!

eduardodflpereira commented 5 years ago

Updated:

danhper commented 5 years ago

Great, thanks!