Skip to content

Commit

Permalink
Lower the batch sizes to also test multiple batches being processed
Browse files Browse the repository at this point in the history
Lower the batch sizes to also test multiple batches being processed
  • Loading branch information
Ladas committed Aug 15, 2017
1 parent 0817da4 commit 371fe86
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 371fe86

Please sign in to comment.