Merge pull request #1774 from balena-io/fix-unhandled-promise-rejection

Fix unhandled promise rejection when using `balena deploy`
This commit is contained in:
Page- 2020-04-28 13:44:25 +01:00 committed by GitHub
commit 2874a69d7d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -581,9 +581,7 @@ const pushAndUpdateServiceImages = function(docker, token, images, afterEach) {
Promise.join(
localImage.inspect().get('Size'),
retry(
() => {
progress.push(localImage.name, reporters[index], opts);
},
() => progress.push(localImage.name, reporters[index], opts),
3, // `times` - retry 3 times
localImage.name, // `label` included in retry log messages
2000, // `delayMs` - wait 2 seconds before the 1st retry