From 95588c08570d6703dee9427a5f815d4736b3c2ba Mon Sep 17 00:00:00 2001 From: Dave G Date: Mon, 3 Feb 2025 09:28:21 -0500 Subject: [PATCH] clear out old artifacts --- .../models/grda_warehouse/tasks/identify_duplicates_spec.rb | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/spec/models/grda_warehouse/tasks/identify_duplicates_spec.rb b/spec/models/grda_warehouse/tasks/identify_duplicates_spec.rb index 518ba770e68..f27ea1da58d 100644 --- a/spec/models/grda_warehouse/tasks/identify_duplicates_spec.rb +++ b/spec/models/grda_warehouse/tasks/identify_duplicates_spec.rb @@ -167,7 +167,7 @@ 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. @@ -175,9 +175,7 @@ # `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)