Skip to content

Commit

Permalink
fix: occasional ETXTBSY on CLI runs (#4568)
Browse files Browse the repository at this point in the history
* fix: bump tests to the signed version

* fix: ensure that downloadExecutable doesn't resolve until file descriptor is closed
  • Loading branch information
michelkaporin authored Apr 24, 2023
1 parent 3a45d54 commit cde8ca6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ts-binary-wrapper/src/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: ' +
Expand Down
2 changes: 1 addition & 1 deletion ts-binary-wrapper/test/acceptance/basic.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down

0 comments on commit cde8ca6

Please sign in to comment.