From 80c26e377aad0d21f3e5f32902953c61aa5dcaab Mon Sep 17 00:00:00 2001 From: Reede Stockton Date: Thu, 16 Nov 2023 16:31:16 -0800 Subject: [PATCH 1/2] Fix error in PotentialDuplicates_TEST.shouldReturnIdsWhenDuplicatesAreFound() --- force-app/main/default/classes/PotentialDuplicates_TEST.cls | 1 - 1 file changed, 1 deletion(-) diff --git a/force-app/main/default/classes/PotentialDuplicates_TEST.cls b/force-app/main/default/classes/PotentialDuplicates_TEST.cls index b6e193b041e..8ec82f6dd9a 100644 --- a/force-app/main/default/classes/PotentialDuplicates_TEST.cls +++ b/force-app/main/default/classes/PotentialDuplicates_TEST.cls @@ -26,7 +26,6 @@ private with sharing class PotentialDuplicates_TEST { // Duplicates will not be found if encryption is enabled if (sObjectType.Contact.fields.Name.isEncrypted()) { System.assertEquals('', setOfMatches, 'No duplicate Ids should be returned if encryption is enabled'); - System.assertEquals(0, numberOfMatches, 'There should be 0 duplicates returned if encryption is enabled'); } else { System.assertNotEquals('', setOfMatches, 'Duplicate Ids should be returned'); From 78889bf3bc19b238a0711177859e41c9858eaa37 Mon Sep 17 00:00:00 2001 From: Reede Stockton Date: Thu, 16 Nov 2023 20:04:03 -0800 Subject: [PATCH 2/2] Add to comment regarding platform encryption test failure --- force-app/main/default/classes/PotentialDuplicates_TEST.cls | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/force-app/main/default/classes/PotentialDuplicates_TEST.cls b/force-app/main/default/classes/PotentialDuplicates_TEST.cls index 8ec82f6dd9a..27987c7076a 100644 --- a/force-app/main/default/classes/PotentialDuplicates_TEST.cls +++ b/force-app/main/default/classes/PotentialDuplicates_TEST.cls @@ -23,7 +23,7 @@ private with sharing class PotentialDuplicates_TEST { String setOfMatches = (String)data.get('setOfMatches'); Integer numberOfMatches = setOfMatches.split(',').size(); - // Duplicates will not be found if encryption is enabled + // Duplicates will not be found if encryption is enabled / standard rules deactivated if (sObjectType.Contact.fields.Name.isEncrypted()) { System.assertEquals('', setOfMatches, 'No duplicate Ids should be returned if encryption is enabled'); }