Skip to content

Commit 7df2577

Browse files
authored
test: run test on node 10 (#63)
1 parent 7cbca8e commit 7df2577

File tree

6 files changed

+20
-30
lines changed

6 files changed

+20
-30
lines changed

.autod.conf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,7 @@ module.exports = {
2020
],
2121
semver: [
2222
'egg-bin@1',
23+
'eslint@4',
24+
'eslint-config-egg@6',
2325
],
2426
};

.travis.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
sudo: false
22
language: node_js
33
node_js:
4-
- '4.3.2'
54
- '4'
65
- '6'
76
- '8'
8-
- '9'
7+
- '10'
98
install:
109
- npm i npminstall && npminstall
1110
script:

appveyor.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
environment:
22
matrix:
3-
- nodejs_version: '4.3.2'
43
- nodejs_version: '4'
54
- nodejs_version: '6'
65
- nodejs_version: '8'
7-
- nodejs_version: '9'
6+
- nodejs_version: '10'
87

98
install:
109
- ps: Install-Product node $env:nodejs_version

benchmark/proxy.js

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,4 @@
1-
/*!
2-
* agentkeepalive - benchmark/proxy.js
3-
* Copyright(c) 2012 fengmk2 <[email protected]>
4-
* MIT Licensed
5-
*/
6-
7-
"use strict";
8-
9-
/**
10-
* Module dependencies.
11-
*/
1+
'use strict';
122

133
var http = require('http');
144
var AgentKeepalive = require('../');

package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,18 +34,18 @@
3434
"humanize-ms": "^1.2.1"
3535
},
3636
"devDependencies": {
37-
"autod": "^2.8.0",
38-
"egg-bin": "^1.10.3",
39-
"egg-ci": "^1.7.0",
40-
"eslint": "^3.19.0",
41-
"eslint-config-egg": "^4.2.0",
37+
"autod": "^3.0.1",
38+
"egg-bin": "^1.11.1",
39+
"egg-ci": "^1.8.0",
40+
"eslint": "^4.19.1",
41+
"eslint-config-egg": "^6.0.0",
4242
"pedding": "^1.1.0"
4343
},
4444
"engines": {
4545
"node": ">= 4.0.0"
4646
},
4747
"ci": {
48-
"version": "4.3.2, 4, 6, 8, 9"
48+
"version": "4, 6, 8, 10"
4949
},
5050
"author": "fengmk2 <[email protected]> (https://fengmk2.com)",
5151
"license": "MIT"

test/agent.test.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -938,10 +938,10 @@ describe('test/agent.test.js', () => {
938938
}, () => {
939939
throw new Error('should not run this');
940940
})
941-
.on('error', () => {
942-
assert(agentkeepalive.sockets[name].length === 1);
943-
done();
944-
});
941+
.on('error', () => {
942+
assert(agentkeepalive.sockets[name].length === 1);
943+
done();
944+
});
945945

946946
http.get({
947947
agent: agentkeepalive,
@@ -950,9 +950,9 @@ describe('test/agent.test.js', () => {
950950
}, () => {
951951
throw new Error('should not run this');
952952
})
953-
.on('error', () => {
953+
.on('error', () => {
954954
// do noting
955-
});
955+
});
956956

957957
http.get({
958958
agent: agentkeepalive,
@@ -961,9 +961,9 @@ describe('test/agent.test.js', () => {
961961
}, () => {
962962
throw new Error('should not run this');
963963
})
964-
.on('error', () => {
965-
// do noting
966-
});
964+
.on('error', () => {
965+
// do noting
966+
});
967967

968968
assert(Object.keys(agentkeepalive.sockets).length === 1);
969969
});

0 commit comments

Comments
 (0)