Skip to content

Commit aa97919

Browse files
Fix ci failures (#117)
* try to fix ci failures due to node 6 * fix node version * increase tests timeout
1 parent 7b31821 commit aa97919

File tree

2 files changed

+8
-10
lines changed

2 files changed

+8
-10
lines changed

azure-pipelines-steps.yml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,15 @@
1-
21
steps:
32

3+
- task: NodeTool@0
4+
displayName: Use Node 10.x
5+
inputs:
6+
versionSpec: "10.24.1"
7+
48
- script: npm install
59
displayName: 'npm install'
610

711
- script: npm run build
812
displayName: 'npm run build'
913

10-
# test with node 6
11-
- task: NodeTool@0
12-
displayName: Use Node 6.10.3
13-
inputs:
14-
versionSpec: "6.10.3"
15-
1614
- script: npm test
1715
displayName: 'npm test'

test/units/toolTests.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ describe('Tool Tests', function () {
4343
this.timeout(1000);
4444

4545
console.log('node version: ' + process.version);
46-
assert(process.version == 'v5.10.1' || process.version == 'v6.10.3' || process.version == 'v8.9.1', 'expected node v5.10.1, v6.10.3, or v8.9.1. actual: ' + process.version);
46+
assert(process.version == 'v10.24.1', 'expected node v10.24.1. actual: ' + process.version);
4747

4848
done();
4949
});
@@ -249,7 +249,7 @@ describe('Tool Tests', function () {
249249
}
250250

251251
it('installs a zip and finds it', function () {
252-
this.timeout(2000);
252+
this.timeout(10000);
253253

254254
return new Promise<void>(async (resolve, reject) => {
255255
try {
@@ -299,7 +299,7 @@ describe('Tool Tests', function () {
299299
});
300300

301301
it('installs a zip and extracts it to specified directory', function () {
302-
this.timeout(2000);
302+
this.timeout(10000);
303303

304304
return new Promise<void>(async (resolve, reject) => {
305305
try {

0 commit comments

Comments
 (0)