Skip to content

Commit

Permalink
fix broken Kokoro configuration test
Browse files Browse the repository at this point in the history
  • Loading branch information
sofisl committed Jun 1, 2022
1 parent c397ef1 commit 9da5d65
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
2 changes: 1 addition & 1 deletion system-test/integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ cp -r "system-test/busybench" "$TESTDIR"
cd "$TESTDIR/busybench"
retry npm_install @mapbox/node-pre-gyp --save
retry npm_install --nodedir="$NODEDIR" "$PROFILER" typescript gts; npm link ../../cloud-profiler-nodejs
retry npm_install --nodedir="$NODEDIR" typescript gts; npm link ../../cloud-profiler-nodejs
npm run compile
Expand Down
6 changes: 0 additions & 6 deletions test/test-init-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,30 +25,24 @@ import * as packageJson from '../package.json';
describe('nodeVersionOkay', () => {
const version = parseInt(packageJson.engines.node.replace('>=', ''));
it('should accept alpha versions', () => {
console.log(version);
assert.strictEqual(true, nodeVersionOkay(`v${version}.0.0-alpha.1`));
});
it('should accept beta versions', () => {
console.log(version);
assert.strictEqual(true, nodeVersionOkay(`v${version}.9.10-beta.2`));
});
it('should accept nightly versions', () => {
console.log(version);
assert.strictEqual(
true,
nodeVersionOkay(`v${version}.0.0-nightly2018000000`)
);
});
it('should accept pre-release versions', () => {
console.log(version);
assert.strictEqual(true, nodeVersionOkay(`v${version}.0.0-pre`));
});
it('should accept v12.4.1', () => {
console.log(version);
assert.strictEqual(true, nodeVersionOkay(`v${version}.4.1`));
});
it('should not accept v11.4.0', () => {
console.log(version);
assert.strictEqual(false, nodeVersionOkay(`v${version - 1}.4.0`));
});
});
Expand Down

0 comments on commit 9da5d65

Please sign in to comment.