1
0
Fork 0
mirror of https://github.com/teamcapybara/capybara.git synced 2022-11-09 12:08:07 -05:00

Document workaround for "Too many files" error with WebMock

Closes https://github.com/teamcapybara/capybara/issues/2322
This commit is contained in:
Stan Hu 2020-04-24 22:42:34 -07:00
parent da55958746
commit bf838cc5a4

View file

@ -1056,6 +1056,13 @@ additional info about how the underlying driver can be configured.
are testing for specific server errors and using multiple sessions make sure to test for the
errors using the initial session (usually :default)
* If WebMock is enabled, you may encounter a "Too many open files"
error. A simple `page.find` call may cause thousands of HTTP requests
until the timeout occurs. By default, WebMock will cause each of these
requests to spawn a new connection. To work around this problem, you
may need to [enable WebMock's `net_http_connect_on_start: true`
parameter](https://github.com/bblimke/webmock/blob/master/README.md#connecting-on-nethttpstart).
## <a name="threadsafe"></a>"Threadsafe" mode
In normal mode most of Capybara's configuration options are global settings which can cause issues