Skip to content

Commit

Permalink
clear out old artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
dtgreiner committed Feb 3, 2025
1 parent 51a8641 commit 95588c0
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions spec/models/grda_warehouse/tasks/identify_duplicates_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -167,17 +167,15 @@
GrdaWarehouse::Tasks::IdentifyDuplicates.new.run!
GrdaWarehouse::Tasks::IdentifyDuplicates.new.match_existing!

# # The code below will calculate the number of expected destination clients in the case that MAX_SOURCE_CLIENTS changes enough to affect this number
# # The code below will calculate the number of expected destination clients in the case that MAX_SOURCE_CLIENTS changes enought to affect this number
# expected_number_destination_clients = ((number_sample_clients * 1.0) / GrdaWarehouse::Tasks::IdentifyDuplicates::MAX_SOURCE_CLIENTS).ceil

# With MAX_SOURCE_CLIENTS set to 50, we are expecting 3 destiantion clients. 2 with 50 source clients and 1 with 25 source clients.
# We are setting this specifically instead of using the calculated number in case `MAX_SOURCE_CLIENTS` gets set to a number larger than
# `number_sample_clients`. If that happened, we wouldn't be reaching the threshold for the numebr of source clients that we are testing.
expected_number_destination_clients = 3

destination_clients = [].tap do |clients|
clients << GrdaWarehouse::Hud::Client.destination
end.flatten
destination_clients = GrdaWarehouse::Hud::Client.destination.to_a

expect(destination_clients.count).to eq(expected_number_destination_clients)
expect(GrdaWarehouse::WarehouseClient.count).to eq(number_sample_clients)
Expand Down

0 comments on commit 95588c0

Please sign in to comment.