From aba11a6116399dfb259fac3a803ee321f4c1ee59 Mon Sep 17 00:00:00 2001 From: Douglas Christopher Wilson Date: Sat, 9 Jun 2018 19:26:25 -0400 Subject: [PATCH] build: support Node.js 10.x --- .travis.yml | 1 + appveyor.yml | 5 ++++- test/test.js | 2 +- 3 files changed, 6 insertions(+), 2 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..14a3ddbf 100644 --- a/test/test.js +++ b/test/test.js @@ -93,7 +93,7 @@ describe('serveIndex(root)', function () { }) it('should treat an ENAMETOOLONG as a 414', function (done) { - var path = Array(11000).join('foobar') + var path = Array(1300).join('foobar') var server = createServer() request(server)