Skip to content

Commit

Permalink
Merge pull request #283 from Ladas/mock_batch_sizes_to_also_test_mult…
Browse files Browse the repository at this point in the history
…iple_batches_being_processed

Lower the batch sizes to also test multiple batches being processed
  • Loading branch information
agrare authored Aug 24, 2017
2 parents 0817da4 + 371fe86 commit 0b97e81
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 0b97e81

Please sign in to comment.