-
Notifications
You must be signed in to change notification settings - Fork 63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add clarity to MVI timeouts #2410
Changes from 3 commits
89b07a1
00c82d4
c7a22ed
4960dcf
dd296ec
30006e7
add16ee
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,19 +35,18 @@ | |
end | ||
end | ||
|
||
# TODO(knkski): These tests probably aren't doing anything useful. | ||
describe '.default_mvi_open_timeout' do | ||
context 'when Settings.mvi.open_timeout is not set' do | ||
it 'should use the default' do | ||
expect(MVI::Configuration::OPEN_TIMEOUT).to eq(2) | ||
describe '.open_timeout' do | ||
context 'when Settings.mvi.open_timeout is set' do | ||
it 'should use the setting' do | ||
expect(MVI::Configuration.instance.open_timeout).to eq(15) | ||
end | ||
end | ||
end | ||
|
||
describe '.default_mvi_timeout' do | ||
context 'when Settings.mvi.timeout is not set' do | ||
it 'should use the default' do | ||
expect(MVI::Configuration::TIMEOUT).to eq(10) | ||
describe '.read_timeout' do | ||
context 'when Settings.mvi.timeout is set' do | ||
it 'should use the setting' do | ||
expect(MVI::Configuration.instance.read_timeout).to eq(15) | ||
end | ||
end | ||
end | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. i support removing these default ones, but can we instead replace them to ensure they have whatever is specified in Settings.yml... Ideally, be explicit in the spec. ie. expect(MVI::Configuration.new.timeout).to eq(15) NOT expect(MVI::Configuration.new.timeout).to eq(Settings.mvi.readtimeout) |
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't mind removing default like these, provided you can link to the devops tickets here in the PR so we can verify they are properly set. If they are not set for each environment there is a risk of blowing up one of those environments.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
They're not set in
ansible/deployment/config/vets-api/prod-settings.local.yml.j2
which becomesconfig/settings.local.yml
. We're good because they're set inconfig/settings.yml
in this repo, which doesn't get overridden.