Skip to content

Commit

Permalink
Support node v14, more tweaks to avoid node v8 segfault on test cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
devinivy committed May 10, 2020
1 parent c7f837b commit 52d61eb
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ node_js:
- "8"
- "10"
- "12"
- "14"
- "node"

after_script: "npm run coveralls"
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 201-2019, Project contributors
Copyright (c) 2018-2020, Project contributors
Copyright (c) 2016-2018, Devin Ivy

Permission is hereby granted, free of charge, to any person obtaining a copy of
Expand Down
5 changes: 4 additions & 1 deletion test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -1282,7 +1282,10 @@ describe('Underdog', () => {
const { pushStream } = stream;
stream.pushStream = (headers, cb) => {

pushStream.call(stream, headers, () => cb(new Error('Oops!')));
pushStream.call(stream, headers, () => {

process.nextTick(() => cb(new Error('Oops!')));
});
};

const response = h.response('body');
Expand Down

0 comments on commit 52d61eb

Please sign in to comment.