Fix NotificationRecipientService spec for EE
EE checks a license, which needs RequestStore enabled to avoid N+1 queries. However, enabling RequestStore causes Gitaly to complain about N+1 invocations, which we really don't care about here.
This commit is contained in:
parent
2c05c8574f
commit
f413c4dd26
1 changed files with 3 additions and 3 deletions
|
@ -19,8 +19,8 @@ describe NotificationRecipientService do
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
it 'avoids N+1 queries' do
|
it 'avoids N+1 queries', :request_store do
|
||||||
create_watcher
|
Gitlab::GitalyClient.allow_n_plus_1_calls { create_watcher }
|
||||||
|
|
||||||
service.build_new_note_recipients(note)
|
service.build_new_note_recipients(note)
|
||||||
|
|
||||||
|
@ -28,7 +28,7 @@ describe NotificationRecipientService do
|
||||||
service.build_new_note_recipients(note)
|
service.build_new_note_recipients(note)
|
||||||
end
|
end
|
||||||
|
|
||||||
create_watcher
|
Gitlab::GitalyClient.allow_n_plus_1_calls { create_watcher }
|
||||||
|
|
||||||
expect { service.build_new_note_recipients(note) }.not_to exceed_query_limit(control_count)
|
expect { service.build_new_note_recipients(note) }.not_to exceed_query_limit(control_count)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue