Skip to content

Commit 39f89dc

Browse files
Merge pull request #1227 from travis-ci/bug-fix-cycle-6
Bugfix cycle 6
2 parents e7d5eb9 + 6f33403 commit 39f89dc

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)