-
Notifications
You must be signed in to change notification settings - Fork 555
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Abort signal #169
Abort signal #169
Conversation
I will take a look. Can you also add docs? We currently don't support https://www.npmjs.com/package/abort-controller. Do we want to? |
Yes, once I finish working on the tests :)
My plan is to support it and I already have some tests for it, but I would like to fix these ones before continuing. |
I guess it's just the abort-controller tests? Have you confirmed |
@ronag found it, apparently using the option Now all the tests are passing except for the first test of each file. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM once conflicts are resolved
Some of those |
test/abort-event-emitter.js
Outdated
setTimeout(() => { | ||
res.setHeader('content-type', 'text/plain') | ||
res.end('hello world') | ||
}, 200) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove all setTimeouts.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've removed most of the timeouts, the ones left are needed to simulate a slow response.
Agreed, no setTimeout |
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
I've added some initial testing, the first one never ends, while the fourth fails.
Closes: #164