diff --git a/features/support/http.rb b/features/support/http.rb index 2233f8286..2eb298547 100644 --- a/features/support/http.rb +++ b/features/support/http.rb @@ -26,7 +26,7 @@ rescue Timeout::Error raise "*** osrm-routed did not respond." end -def send_request uri, waypoints, timestamps, options +def send_request uri, waypoints=[], options={}, timestamps=[] @query = uri.to_s Timeout.timeout(OSRM_TIMEOUT) do if @http_method.eql? "POST" diff --git a/features/support/match.rb b/features/support/match.rb index 2f75f08d8..8bcf7a2c6 100644 --- a/features/support/match.rb +++ b/features/support/match.rb @@ -15,6 +15,6 @@ def request_matching trace=[], timestamps=[], options={} params = nil if params=="" uri = generate_request_url ("match" + '?' + params) - response = send_request uri, trace, timestamps, options + response = send_request uri, trace, options, timestamps end diff --git a/features/support/route.rb b/features/support/route.rb index f7c14e9ff..ca353d6e6 100644 --- a/features/support/route.rb +++ b/features/support/route.rb @@ -21,7 +21,7 @@ def request_path path, waypoints=[], options={} else uri = generate_request_url (path + '?' + params) end - response = send_request uri, waypoints, {}, options + response = send_request uri, waypoints, options end def request_url path