diff --git a/spec/models/manageiq/providers/amazon/aws_refresher_spec_common.rb b/spec/models/manageiq/providers/amazon/aws_refresher_spec_common.rb index 13f5d9368..752c4a0be 100644 --- a/spec/models/manageiq/providers/amazon/aws_refresher_spec_common.rb +++ b/spec/models/manageiq/providers/amazon/aws_refresher_spec_common.rb @@ -39,6 +39,11 @@ module AwsRefresherSpecCommon ].freeze def stub_refresh_settings(settings) + # TODO(lsmola) extract the batch sizes to the settings and stub the settings instead + # Lower batch sizes to test multiple batches for each collection + allow_any_instance_of(ManagerRefresh::InventoryCollection).to receive(:batch_size).and_return(4) + allow_any_instance_of(ManagerRefresh::InventoryCollection).to receive(:batch_size_pure_sql).and_return(4) + stub_settings_merge( :ems_refresh => { :ec2 => settings,