-
Notifications
You must be signed in to change notification settings - Fork 47
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
Missing socket #87
Comments
I also need this to get tests passing for the change in fastify/fastify#2575, switching from I tried doing a naive switch in light-my-request/lib/request.js Lines 67 to 69 in b416dd6
this.connection = {...} to this.socket = {...} , but it's clearly going to need more than that.
I also found that doing so broke other modules that depend on the |
You need add: |
Thanks @mcollina, I'll do that and send a PR. |
Hi,
I'm writing some test for a Fastify plugin that uses some
koa
handler to manage routes.The test is failing due this check of
koa
lib:https://github.com/koajs/koa/blob/master/lib/request.js#L402
Considered that:
listen
instead ofinject
to write my testsDo you think adding a
this.socket = {}
to the light-my-request is a bad idea?How would you cover this use case?
The text was updated successfully, but these errors were encountered: