Skip to content

Commit

Permalink
build: Node.js@18.10
Browse files Browse the repository at this point in the history
  • Loading branch information
dougwilson authored and neohotsauce committed May 4, 2023
1 parent 4a670ee commit 93e3884
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ jobs:
node-version: "17.9"

- name: Node.js 18.x
node-version: "18.7"
node-version: "18.10"

steps:
- uses: actions/checkout@v2
Expand Down
2 changes: 1 addition & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ environment:
- nodejs_version: "15.14"
- nodejs_version: "16.17"
- nodejs_version: "17.9"
- nodejs_version: "18.7"
- nodejs_version: "18.10"
cache:
- node_modules
install:
Expand Down
7 changes: 4 additions & 3 deletions test/res.sendFile.js
Original file line number Diff line number Diff line change
Expand Up @@ -1050,12 +1050,13 @@ describe('res', function(){

app.use(function(req, res){
res.sendfile('test/fixtures/user.html', function(err){
assert(!res.headersSent);
assert.strictEqual(req.socket.listeners('error').length, 1) // node's original handler
assert.ok(err)
assert.ok(!res.headersSent)
assert.strictEqual(err.message, 'broken!')
done();
});

req.socket.emit('error', new Error('broken!'));
req.socket.destroy(new Error('broken!'))
});

request(app)
Expand Down

0 comments on commit 93e3884

Please sign in to comment.