Skip to content

Commit 92d6767

Browse files
committed
build: support Node.js 10.x
1 parent fcad676 commit 92d6767

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ node_js:
1212
- "7.10"
1313
- "8.11"
1414
- "9.11"
15+
- "10.4"
1516
sudo: false
1617
cache:
1718
directories:

appveyor.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,13 @@ environment:
1212
- nodejs_version: "7.10"
1313
- nodejs_version: "8.11"
1414
- nodejs_version: "9.11"
15+
- nodejs_version: "10.4"
1516
cache:
1617
- node_modules
1718
install:
18-
- ps: Install-Product node $env:nodejs_version
19+
- ps: >-
20+
try { Install-Product node $env:nodejs_version -ErrorAction Stop }
21+
catch { Update-NodeJsInstallation (Get-NodeJsLatestBuild $env:nodejs_version) }
1922
- npm config set shrinkwrap false
2023
- if "%nodejs_version%" equ "0.8" npm config set strict-ssl false
2124
- if "%nodejs_version%" equ "0.8" npm rm --save-dev istanbul

test/test.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,11 +93,11 @@ describe('serveIndex(root)', function () {
9393
})
9494

9595
it('should treat an ENAMETOOLONG as a 414', function (done) {
96-
var path = Array(11000).join('foobar')
97-
var server = createServer()
96+
var dir = path.join(fixtures, Array(10000).join('/foobar'))
97+
var server = createServer(dir)
9898

9999
request(server)
100-
.get('/' + path)
100+
.get('/')
101101
.expect(414, done)
102102
})
103103

0 commit comments

Comments
 (0)