Skip to content

Commit

Permalink
Don't use a forking server - use threads instead.
Browse files Browse the repository at this point in the history
I think this may help solve the travis CI build problems--the forked process may be exiting with another status code causing a failed spec run even though no specs failed.

The forked process approach was needed for Patron in the past but that appears to be fixed.
  • Loading branch information
myronmarston committed Oct 30, 2012
1 parent 7563715 commit 3057b66
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions spec/support/vcr_localhost_server.rb
Expand Up @@ -81,10 +81,7 @@ def concurrently
end end


def should_use_subprocess? def should_use_subprocess?
# Patron times out when the server is running in a separate thread in the same process, false
# so use a separate process.
# In all other cases, we can use a thread (it's faster!)
defined?(Patron)
end end


def wait_until(timeout, error_message, &block) def wait_until(timeout, error_message, &block)
Expand Down

0 comments on commit 3057b66

Please sign in to comment.