Commit e9c614cc authored by Grzegorz Bizon's avatar Grzegorz Bizon

Reload project before an update in specs

parent d67553d3
......@@ -207,7 +207,7 @@ module Projects
def group_runner_traversal_ids
if project.group_runners_enabled?
project.namespace.reset.traversal_ids
project.namespace.traversal_ids
else
[]
end
......
......@@ -490,7 +490,7 @@ RSpec.describe Projects::UpdateService do
let(:project) { create(:project, :in_subgroup, group_runners_enabled: false) }
before do
project.ci_cd_settings.update!(group_runners_enabled: false)
project.reload.ci_cd_settings.update!(group_runners_enabled: false)
end
it 'updates builds queue when group runners get enabled' 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