Skip to content

Commit

Permalink
build: support Node.js 10.x
Browse files Browse the repository at this point in the history
fixes #173
  • Loading branch information
dougwilson committed Nov 20, 2018
1 parent 19a9ba4 commit 3146427
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ node_js:
- "7.10"
- "8.13"
- "9.11"
- "10.13"
sudo: false
cache:
directories:
Expand Down
11 changes: 10 additions & 1 deletion test/morgan.js
Original file line number Diff line number Diff line change
Expand Up @@ -1036,7 +1036,16 @@ describe('morgan()', function () {

request(server)
.get('/')
.expect(102, cb)
.expect(102, function (err, res) {
if (err && err.code === 'ECONNRESET') {
// finishing response with 1xx is invalid http
// but node.js server lets the server do this, so
// morgan needs to test in this condition even if
// the http client doesn't like it
err = null
}
cb(err, res)
})
})

it('should color 2xx green', function (done) {
Expand Down

0 comments on commit 3146427

Please sign in to comment.