Skip to content

Commit

Permalink
Resolves the multiple emit from #280 (#286)
Browse files Browse the repository at this point in the history
* Redid the integration tests using serverless-offline

* Split offline and AWS editions of the integration tests

* Run integration test in Github

* Integration needs "npm run"

* Re-enable node14.x tests

* Demo the pino case doing double logging

* Resolves the multiple emit from #280
  • Loading branch information
palfrey authored Sep 21, 2023
1 parent bbba01e commit d2f123b
Show file tree
Hide file tree
Showing 11 changed files with 849 additions and 192 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,5 @@ jobs:
with:
node-version: 18
- run: npm ci
- run: npm test
- run: npm test
- run: npm run test:integration:offline
4 changes: 0 additions & 4 deletions lib/response.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,10 +127,6 @@ module.exports = class ServerlessResponse extends http.ServerResponse {
return true;
},
});

this.once('finish', () => {
this.emit('close')
});
}

};
Loading

0 comments on commit d2f123b

Please sign in to comment.