diff --git a/ts-binary-wrapper/src/common.ts b/ts-binary-wrapper/src/common.ts index 16edbbed16..793e487f30 100644 --- a/ts-binary-wrapper/src/common.ts +++ b/ts-binary-wrapper/src/common.ts @@ -260,7 +260,7 @@ export function downloadExecutable( // shasum events shasum.on('error', cleanupAfterError); // filestream events - fileStream.on('error', cleanupAfterError).on('finish', () => { + fileStream.on('error', cleanupAfterError).on('close', () => { const actualShasum = shasum.read(); const debugMessage = 'Shasums:\n- actual: ' + diff --git a/ts-binary-wrapper/test/acceptance/basic.spec.ts b/ts-binary-wrapper/test/acceptance/basic.spec.ts index 14223948f4..ce3953e5bd 100644 --- a/ts-binary-wrapper/test/acceptance/basic.spec.ts +++ b/ts-binary-wrapper/test/acceptance/basic.spec.ts @@ -8,7 +8,7 @@ jest.setTimeout(60 * 1000); describe('Basic acceptance test', () => { const envSetup = new TestEnvironmentSetup(); - const cliVersionForTesting = '1.1080.0'; + const cliVersionForTesting = '1.1143.0'; beforeEach(async () => { process.env.SNYK_DISABLE_ANALYTICS = '1';