Skip to content

Commit

Permalink
Increase VAOS timeout (#3531)
Browse files Browse the repository at this point in the history
  • Loading branch information
kreek authored Nov 14, 2019
1 parent 9034d65 commit e2377b9
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions config/settings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -418,3 +418,4 @@ va_mobile:
url: 'https://veteran.apps.va.gov/'
mock: false
key_path: /fake/client/key/path
timeout: 15
2 changes: 2 additions & 0 deletions modules/vaos/app/services/vaos/configuration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

module VAOS
class Configuration < Common::Client::Configuration::REST
self.read_timeout = Settings.va_mobile.timeout || 15

def base_path
Settings.va_mobile.url
end
Expand Down
6 changes: 6 additions & 0 deletions modules/vaos/spec/services/configuration_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,10 @@
end
end
end

describe '#read_timeout' do
it 'has a default timeout of 15 seconds' do
expect(VAOS::Configuration.instance.read_timeout).to eq(15)
end
end
end

0 comments on commit e2377b9

Please sign in to comment.