You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
chore: cherry pick feat: added DEPENDENT_SERVICE_IMMATURE_RECORDS predefined error for immature records scenarios (#3394) (#3415)
feat: added DEPENDENT_SERVICE_IMMATURE_RECORDS predefined error for immature records scenarios (#3394)
* feat: added DEPENDENT_SERVICE_IMMATURE_RECORDS predefined error for immature records scenarios
* test: fixed unit tests for the new DEPENDENT_SERVICE_IMMATURE_RECORDS scenarios
---------
Signed-off-by: Logan Nguyen <logan.nguyen@swirldslabs.com>
// Mock 11 sequential calls that return immature records - as default polling counts (10)
690
-
[...Array(11)].reduce((mockChain)=>{
689
+
// Mock 10 sequential calls that return immature records - equals to the default polling counts (10) - should throw an error at the last polling attempt
@@ -861,22 +863,20 @@ describe('MirrorNodeClient', async function () {
861
863
});
862
864
863
865
it('`getContractResultsLogsWithRetry` should return immature records after exhausting maximum retry attempts',async()=>{
864
-
// Mock 11 sequential calls that return immature records - greater than default polling counts (10)
865
-
[...Array(11)].reduce((mockChain)=>{
866
+
// Mock 10 sequential calls that return immature records - equals to the default polling counts (10) - should throw an error at the last polling attempt
0 commit comments