Skip to content

Commit 88148a2

Browse files
committed
modify: total tries for binary start. fix: unit tests
1 parent 29ff405 commit 88148a2

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

setup-local/config/constants.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ module.exports = {
4949
},
5050
},
5151

52-
BINARY_MAX_TRIES: 2,
52+
BINARY_MAX_TRIES: 3,
5353

5454
RESTRICTED_LOCAL_ARGS: ['k', 'key', 'local-identifier', 'daemon', 'only-automate', 'verbose', 'log-file', 'ci-plugin'],
5555

setup-local/dist/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13489,7 +13489,7 @@ module.exports = {
1348913489
},
1349013490
},
1349113491

13492-
BINARY_MAX_TRIES: 2,
13492+
BINARY_MAX_TRIES: 3,
1349313493

1349413494
RESTRICTED_LOCAL_ARGS: ['k', 'key', 'local-identifier', 'daemon', 'only-automate', 'verbose', 'log-file', 'ci-plugin'],
1349513495

setup-local/test/binaryControl.test.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -385,9 +385,9 @@ describe('Binary Control Operations', () => {
385385
binaryControl._removeAnyStaleBinary.restore();
386386
});
387387

388-
it('Delete any stale local binary (non windows)', () => {
388+
it('Delete any stale local binary (non windows)', async () => {
389389
binaryControl.platform = PLATFORMS.DARWIN;
390-
binaryControl._removeAnyStaleBinary();
390+
await binaryControl._removeAnyStaleBinary();
391391
const binaryZipPath = path.resolve(binaryControl.binaryFolder, LOCAL_BINARY_ZIP);
392392
const staleBinaryPath = path.resolve(
393393
binaryControl.binaryFolder,
@@ -397,9 +397,9 @@ describe('Binary Control Operations', () => {
397397
sinon.assert.calledWith(io.rmRF, staleBinaryPath);
398398
});
399399

400-
it('Delete any stale local binary (windows)', () => {
400+
it('Delete any stale local binary (windows)', async () => {
401401
binaryControl.platform = PLATFORMS.WIN32;
402-
binaryControl._removeAnyStaleBinary();
402+
await binaryControl._removeAnyStaleBinary();
403403
const binaryZipPath = path.resolve(binaryControl.binaryFolder, LOCAL_BINARY_ZIP);
404404
const staleBinaryPath = path.resolve(
405405
binaryControl.binaryFolder,

0 commit comments

Comments
 (0)