From 92d67676ff25843cc8adc741ec498683097f860f Mon Sep 17 00:00:00 2001 From: Douglas Christopher Wilson Date: Sat, 9 Jun 2018 19:26:38 -0400 Subject: [PATCH] build: support Node.js 10.x --- .travis.yml | 1 + appveyor.yml | 5 ++++- test/test.js | 6 +++--- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index 96db0529..08f340b6 100644 --- a/.travis.yml +++ b/.travis.yml @@ -12,6 +12,7 @@ node_js: - "7.10" - "8.11" - "9.11" + - "10.4" sudo: false cache: directories: diff --git a/appveyor.yml b/appveyor.yml index b7e9ff35..653418b1 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -12,10 +12,13 @@ environment: - nodejs_version: "7.10" - nodejs_version: "8.11" - nodejs_version: "9.11" + - nodejs_version: "10.4" cache: - node_modules install: - - ps: Install-Product node $env:nodejs_version + - ps: >- + try { Install-Product node $env:nodejs_version -ErrorAction Stop } + catch { Update-NodeJsInstallation (Get-NodeJsLatestBuild $env:nodejs_version) } - npm config set shrinkwrap false - if "%nodejs_version%" equ "0.8" npm config set strict-ssl false - if "%nodejs_version%" equ "0.8" npm rm --save-dev istanbul diff --git a/test/test.js b/test/test.js index b0c9531d..283aad51 100644 --- a/test/test.js +++ b/test/test.js @@ -93,11 +93,11 @@ describe('serveIndex(root)', function () { }) it('should treat an ENAMETOOLONG as a 414', function (done) { - var path = Array(11000).join('foobar') - var server = createServer() + var dir = path.join(fixtures, Array(10000).join('/foobar')) + var server = createServer(dir) request(server) - .get('/' + path) + .get('/') .expect(414, done) })