Skip to content

Commit

Permalink
Merge pull request #763 from snyk/fix/binary-building
Browse files Browse the repository at this point in the history
fix: version retrieval in preflight check
  • Loading branch information
aarlaud authored May 10, 2024
2 parents 28f12c6 + 4fba441 commit f9399dd
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
2 changes: 1 addition & 1 deletion lib/client/checks/config/brokerClientVersionCheck.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export const validateBrokerClientVersionAgainstServer = async (
checkOptions: CheckOptions,
config,
) => {
const clientVersion = version();
const clientVersion = `${version}`;
if (clientVersion != 'local') {
const req: PostFilterPreparedRequest = {
url: `${config.BROKER_SERVER_URL}/healthcheck`,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,7 @@ jest.mock('../../../../../lib/common/utils/version', () => {
return {
__esModule: true,
...originalModule,
default: () => {
return '4.180.0';
},
default: '4.180.0',
};
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,7 @@ jest.mock('../../../../../lib/common/utils/version', () => {
return {
__esModule: true,
...originalModule,
default: () => {
return 'local';
},
default: 'local',
};
});

Expand Down

0 comments on commit f9399dd

Please sign in to comment.