diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-02-18 09:45:46 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-02-18 09:45:46 +0000 |
commit | a7b3560714b4d9cc4ab32dffcd1f74a284b93580 (patch) | |
tree | 7452bd5c3545c2fa67a28aa013835fb4fa071baf /spec/rubocop/cop/scalability | |
parent | ee9173579ae56a3dbfe5afe9f9410c65bb327ca7 (diff) | |
download | gitlab-ce-a7b3560714b4d9cc4ab32dffcd1f74a284b93580.tar.gz |
Add latest changes from gitlab-org/gitlab@14-8-stable-eev14.8.0-rc42
Diffstat (limited to 'spec/rubocop/cop/scalability')
-rw-r--r-- | spec/rubocop/cop/scalability/bulk_perform_with_context_spec.rb | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/spec/rubocop/cop/scalability/bulk_perform_with_context_spec.rb b/spec/rubocop/cop/scalability/bulk_perform_with_context_spec.rb index 01afaf3acb6..74912b53d37 100644 --- a/spec/rubocop/cop/scalability/bulk_perform_with_context_spec.rb +++ b/spec/rubocop/cop/scalability/bulk_perform_with_context_spec.rb @@ -39,9 +39,15 @@ RSpec.describe RuboCop::Cop::Scalability::BulkPerformWithContext do CODE end - it "does not add an offense for scheduling BackgroundMigrations" do + it "does not add an offense for scheduling on the BackgroundMigrationWorker" do expect_no_offenses(<<~CODE) BackgroundMigrationWorker.bulk_perform_in(args) CODE end + + it "does not add an offense for scheduling on the CiDatabaseWorker" do + expect_no_offenses(<<~CODE) + BackgroundMigration::CiDatabaseWorker.bulk_perform_in(args) + CODE + end end |