test(AWS Lambda): Fix propagation time allowance

This commit is contained in:
Mariusz Nowak 2020-08-26 13:01:18 +02:00
parent 5f5c3307e3
commit 877d474d58
No known key found for this signature in database
GPG Key ID: A292FE0143B1828B

View File

@ -84,7 +84,7 @@ describe('AWS - FileSystemConfig Integration Test', function() {
// here we retry it to avoid that issue
if (
e.code === 'EFSMountFailureException' &&
Date.now() - startTime > EFS_MAX_PROPAGATION_TIME
Date.now() - startTime < EFS_MAX_PROPAGATION_TIME
) {
console.info('Failed to invoke, retry');
return self();