-
由 Stan Hu 创作于
When Capybara is used in a debugger in feature specs, developers will often see "Too many open files". As described in https://github.com/teamcapybara/capybara/issues/2322, it appears that this may be an issue with WebMock, which stops `Net::HTTP.start` from connecting. If you start a connection and issue multiple requests with it, WebMock will create a new connection per request. Setting `net_http_connect_on_start: true` appears to fix the problem: https://github.com/bblimke/webmock/blob/master/README.md Many specs depending on the behavior of WebMock stubbing Net::HTTP.start, so use the WebMock default behavior in most cases and enable it only for feature specs. Kubeclient needs an exception because as well, so add a :kubeclient label for this.
由 Stan Hu 创作于When Capybara is used in a debugger in feature specs, developers will often see "Too many open files". As described in https://github.com/teamcapybara/capybara/issues/2322, it appears that this may be an issue with WebMock, which stops `Net::HTTP.start` from connecting. If you start a connection and issue multiple requests with it, WebMock will create a new connection per request. Setting `net_http_connect_on_start: true` appears to fix the problem: https://github.com/bblimke/webmock/blob/master/README.md Many specs depending on the behavior of WebMock stubbing Net::HTTP.start, so use the WebMock default behavior in most cases and enable it only for feature specs. Kubeclient needs an exception because as well, so add a :kubeclient label for this.
代码所有者
将用户和群组指定为特定文件更改的核准人。 了解更多。