Commit 429b9388 authored by Grzegorz Bizon's avatar Grzegorz Bizon

Fix flaky tests in groups and project mirrors specs

parent bd4413eb
......@@ -42,6 +42,8 @@ describe Admin::GroupsController do
context 'PUT update' do
context 'no license' do
it 'does not update the project_creation_level successfully' do
stub_licensed_features(project_creation_level: false)
expect do
post :update, id: group.to_param, group: { project_creation_level: ::EE::Gitlab::Access::NO_ONE_PROJECT_ACCESS }
end.not_to change { group.reload.project_creation_level }
......
......@@ -20,7 +20,7 @@ describe Projects::MirrorsController do
project: {
mirror: '1',
import_url: '',
mirror_user_id: '1',
mirror_user_id: user.id,
mirror_trigger_builds: '0'
}
......
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