Commit 10f867b6 authored by Bob Van Landuyt's avatar Bob Van Landuyt

Update the mirror delay to something that's valid in controller spec

parent 89d7c75a
......@@ -65,8 +65,10 @@ describe Admin::ApplicationSettingsController do # rubocop:disable RSpec/FilePat
it 'updates mirror settings when repository mirrors is licensed' do
stub_licensed_features(repository_mirrors: true)
mirror_delay = (Gitlab::Mirror.min_delay_upper_bound / 60) + 1
settings = {
mirror_max_delay: 12,
mirror_max_delay: mirror_delay,
mirror_max_capacity: 2,
mirror_capacity_threshold: 2
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment