-
Notifications
You must be signed in to change notification settings - Fork 561
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
WebMock breaks Async::WebSocket #953
Comments
@ioquatix would you mind having a look? Maybe the problem is somewhere in the Async stack |
Sure. |
Also running into this issue and would love to help working towards a fix. I'm not too familiar with Async so probably wouldn't be much help directly fixing the bug, but if a repro script would be useful please let me know. |
Mocking The plan is to introduce a mechanism for redirecting / mocking requests directly in It will require some more work, but I think the plan is to provide a hook such that web mock can say "I'll hijack requests with this middleware" and handle them using a standard interface. |
Hello,
I'm currently working on a project that uses Async::WebSocket to interact with a database running locally and Async::HTTP to call some 3rd party services.
I wanted to use WebMock to prevent the test suite from making any network requests, but allow it to interact with the database.
An attempt to open a websocket connection with enabled WebMock blocking leads to an error:
It is expected that WebMock should not care about websockets, but at least it should not break them if the host is in the allowlist.
I prepared a minimal demo app that reproduces this error: https://github.com/zhulik/async-http-webmock-bug-demo
Thanks you!
The text was updated successfully, but these errors were encountered: