diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-09-12 15:12:09 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-09-12 15:12:09 +0300 |
commit | 07d9675a80861fe84199e4002667f0bd57c160bf (patch) | |
tree | e2e8a77a98ba8debf383988860b71b64d86100b3 /spec/lib/gitlab/import_export | |
parent | fc52f69f815eecbad9fcfe6b974f0c3e9c553828 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/lib/gitlab/import_export')
-rw-r--r-- | spec/lib/gitlab/import_export/json/streaming_serializer_spec.rb | 6 | ||||
-rw-r--r-- | spec/lib/gitlab/import_export/legacy_relation_tree_saver_spec.rb | 2 |
2 files changed, 1 insertions, 7 deletions
diff --git a/spec/lib/gitlab/import_export/json/streaming_serializer_spec.rb b/spec/lib/gitlab/import_export/json/streaming_serializer_spec.rb index 3088129a732..b8d18718dfb 100644 --- a/spec/lib/gitlab/import_export/json/streaming_serializer_spec.rb +++ b/spec/lib/gitlab/import_export/json/streaming_serializer_spec.rb @@ -212,12 +212,6 @@ RSpec.describe Gitlab::ImportExport::Json::StreamingSerializer do end end - describe '.batch_size' do - it 'returns default batch size' do - expect(described_class.batch_size(exportable)).to eq(described_class::BATCH_SIZE) - end - end - describe '#serialize_relation' do context 'when record is a merge request' do let(:json_writer) do diff --git a/spec/lib/gitlab/import_export/legacy_relation_tree_saver_spec.rb b/spec/lib/gitlab/import_export/legacy_relation_tree_saver_spec.rb index 0d372def8b0..c2c50751c3f 100644 --- a/spec/lib/gitlab/import_export/legacy_relation_tree_saver_spec.rb +++ b/spec/lib/gitlab/import_export/legacy_relation_tree_saver_spec.rb @@ -13,7 +13,7 @@ RSpec.describe Gitlab::ImportExport::LegacyRelationTreeSaver do it 'uses FastHashSerializer' do expect(Gitlab::ImportExport::FastHashSerializer) .to receive(:new) - .with(exportable, tree, batch_size: Gitlab::ImportExport::Json::StreamingSerializer::BATCH_SIZE) + .with(exportable, tree) .and_return(serializer) expect(serializer).to receive(:execute) |