Skip to content
This repository has been archived by the owner on Jun 16, 2021. It is now read-only.

Commit

Permalink
Merge pull request #541 from omu/develop
Browse files Browse the repository at this point in the history
Increase timeout duration for test environment
  • Loading branch information
msdundar authored Nov 14, 2018
2 parents 2ad2677 + dbae137 commit 8fc0b75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/services/xokul/connection.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ module Connection

# rubocop:disable Metrics/MethodLength
def self.request(path, params: {}, **http_options)
http_options[:open_timeout] ||= http_options[:read_timeout] ||= 5 if Rails.env.test?
http_options[:open_timeout] ||= http_options[:read_timeout] ||= 10 if Rails.env.test?

response = RestClient.get(
URI.join(BASE_URL, path).to_s,
Expand Down

0 comments on commit 8fc0b75

Please sign in to comment.