Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
  • 1 commit
  • 1 file changed
  • 0 commit comments
  • 1 contributor
Showing with 3 additions and 2 deletions.
  1. +3 −2 lib/mimic.rb
View
5 lib/mimic.rb
@@ -11,7 +11,8 @@ module Mimic
:port => MIMIC_DEFAULT_PORT,
:remote_configuration_path => nil,
:fork => true,
- :log => nil
+ :log => nil,
+ :timeout => 5
}
def self.mimic(options = {}, &block)
@@ -51,7 +52,7 @@ def serve(app, options)
start_service(app, options)
end
- wait_for_service(app.hostname, options[:port])
+ wait_for_service(app.hostname, options[:port], timeout = options[:timeout])
else
start_service(app, options)

No commit comments for this range

Something went wrong with that request. Please try again.