Co-authored-by: Shailesh Parmar <shailesh.parmar.webdev@gmail.com>
This commit is contained in:
Pranita Fulsundar 2025-08-18 22:45:37 +05:30 committed by GitHub
parent 80798a63e2
commit 946f63c83d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -88,18 +88,20 @@ export const waitForDataContractExecution = async (
consecutiveErrors++;
if (consecutiveErrors >= maxConsecutiveErrors) {
throw new Error(
`Failed to get contract execution status after ${maxConsecutiveErrors} consecutive attempts`
`Failed to get contract execution status after ${maxConsecutiveErrors} consecutive attempts: ${error}`
);
}
return 'Running';
throw error;
}
},
{
message: 'Wait for data contract execution to complete',
timeout: 750_000,
intervals: [30_000, 15_000, 5_000],
timeout: 150_000,
intervals: [5_000, 10_000, 15_000],
}
)
.toEqual(expect.stringMatching(/(Aborted|Success|Failed)/));
.toEqual(
expect.stringMatching(/(Aborted|Success|Failed|PartialSuccess|Queued)/)
);
};