diff options
Diffstat (limited to 'spec/lib/gitlab/github_import/importer/notes_importer_spec.rb')
-rw-r--r-- | spec/lib/gitlab/github_import/importer/notes_importer_spec.rb | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/spec/lib/gitlab/github_import/importer/notes_importer_spec.rb b/spec/lib/gitlab/github_import/importer/notes_importer_spec.rb index ca4560b6a1a..841cc8178ea 100644 --- a/spec/lib/gitlab/github_import/importer/notes_importer_spec.rb +++ b/spec/lib/gitlab/github_import/importer/notes_importer_spec.rb @@ -2,7 +2,7 @@ require 'spec_helper' -RSpec.describe Gitlab::GithubImport::Importer::NotesImporter do +RSpec.describe Gitlab::GithubImport::Importer::NotesImporter, feature_category: :importers do let(:project) { double(:project, id: 4, import_source: 'foo/bar') } let(:client) { double(:client) } @@ -75,7 +75,7 @@ RSpec.describe Gitlab::GithubImport::Importer::NotesImporter do end end - describe '#parallel_import' do + describe '#parallel_import', :clean_gitlab_redis_cache do it 'imports each note in parallel' do importer = described_class.new(project, client) @@ -83,10 +83,8 @@ RSpec.describe Gitlab::GithubImport::Importer::NotesImporter do .to receive(:each_object_to_import) .and_yield(github_comment) - expect(Gitlab::GithubImport::ImportNoteWorker).to receive(:bulk_perform_in) - .with(1.second, [ - [project.id, an_instance_of(Hash), an_instance_of(String)] - ], batch_size: 1000, batch_delay: 1.minute) + expect(Gitlab::GithubImport::ImportNoteWorker).to receive(:perform_in) + .with(1.second, project.id, an_instance_of(Hash), an_instance_of(String)) waiter = importer.parallel_import |