Skip to content

Commit

Permalink
update event log pruning to test before/after date range
Browse files Browse the repository at this point in the history
  • Loading branch information
ezekg committed Oct 18, 2023
1 parent da0bd32 commit f1f4fdf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/workers/prune_event_logs_worker_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,10 @@
)
end

it 'should not prune high-volume event logs before backlog' do
it 'should not prune high-volume event logs before/after backlog' do
license = create(:license, account:)

create_list(:event_log, 50, :license_validation_succeeded, account:, resource: license, created_at: worker::BACKLOG_DAYS / 2)
create_list(:event_log, 50, :license_validation_succeeded, account:, resource: license, created_at: worker::BACKLOG_DAYS + 2)
create_list(:event_log, 50, :license_validation_succeeded, account:, resource: license)
create_list(:event_log, 50, :license_validation_failed, account:, resource: license, created_at: worker::BACKLOG_DAYS)
create_list(:event_log, 50, :license_validation_failed, account:, resource: license)
Expand Down

0 comments on commit f1f4fdf

Please sign in to comment.