Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Comparing changes

Choose two branches to see what's changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: thoughtbot/capybara-webkit
...
head fork: arieliten/capybara-webkit
Checking mergeability… Don't worry, you can still create the pull request.
  • 1 commit
  • 1 file changed
  • 0 commit comments
  • 1 contributor
Showing with 8 additions and 1 deletion.
  1. +8 −1 lib/capybara/driver/webkit/browser.rb
View
9 lib/capybara/driver/webkit/browser.rb
@@ -177,7 +177,14 @@ def server_pipe_and_pid(server_path)
def discover_server_port(read_pipe)
return unless IO.select([read_pipe], nil, nil, 10)
- ((read_pipe.first || '').match(/listening on port: (\d+)/) || [])[1].to_i
+ port = nil
+ Timeout.timeout(5) do
+ while !port
+ match = (read_pipe.first || '').match(/listening on port: (\d+)/)
+ port = match[1].to_i if match
+ end
+ end
+ port
end
def forward_stdout(pipe)

No commit comments for this range

Something went wrong with that request. Please try again.