Commit 4d027dc6 authored by Lin Jen-Shin's avatar Lin Jen-Shin

Quick workaround to the new model validation

See https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/2589#note_36815441

We need to fix this properly in the future
parent 57fbfeb6
......@@ -11,7 +11,7 @@ describe UpdateAuthorizedKeysFile, :migration do
ActiveRecord::Base.connection.change_column_null :application_settings, :authorized_keys_enabled, true
ActiveRecord::Base.connection.change_column :application_settings, :authorized_keys_enabled, :boolean, default: nil
ApplicationSetting.create!(authorized_keys_enabled: nil)
ApplicationSetting.create!(authorized_keys_enabled: nil, mirror_max_delay: 300)
end
it 'sets authorized_keys_enabled to true' do
......@@ -84,7 +84,7 @@ describe UpdateAuthorizedKeysFile, :migration do
context 'when is a record in application_settings table' do
before do
ApplicationSetting.create!(authorized_keys_enabled: true)
ApplicationSetting.create!(authorized_keys_enabled: true, mirror_max_delay: 300)
end
context 'when authorized_keys_enabled is true' do
......
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