Skip to content

Commit ba32ee6

Browse files
Merge pull request #1219 from travis-ci/fix-env-var-creation-am
[BSFY-91] Fix custom timeout env var creation from web
2 parents 99fd627 + 143a965 commit ba32ee6

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

lib/travis/model/repository/settings.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,7 @@ def valid_timeout?(settings, type)
7676

7777
def max_value(settings, type)
7878
config = Travis.config.settings.timeouts.to_h
79-
key = custom_timeouts?(settings) ? :maximums : :defaults
80-
values = config[key] || {}
79+
values = config[:maximums] || {}
8180

8281
values[type]
8382
end

spec/lib/model/repository/settings_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363

6464
describe 'timeouts' do
6565
MAX = {
66-
off: { hard_limit: 50, log_silence: 10 },
66+
off: { hard_limit: 180, log_silence: 60 },
6767
on: { hard_limit: 180, log_silence: 60 }
6868
}
6969

0 commit comments

Comments
 (0)