You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 20, 2023. It is now read-only.
I would like to run integration tests that don't depend on the network. It appears to me that if I can mock the Connection than I can mock http-client. Do you have any insight on how to initialize a mock connection?
From a quick review of the code, my first try would be use connectFromHandle but give a mock Handle, although now I have to figure out if it is possible to create a mock Handle.
The text was updated successfully, but these errors were encountered:
I think it would be really nice to have a connectFromBsMvar that takes a "MVar [Strict.ByteString]" (or a Chan) for this purpose and would be actually quite generic and useful for testing/mocking.
I would like to run integration tests that don't depend on the network. It appears to me that if I can mock the Connection than I can mock http-client. Do you have any insight on how to initialize a mock connection?
From a quick review of the code, my first try would be use connectFromHandle but give a mock Handle, although now I have to figure out if it is possible to create a mock Handle.
The text was updated successfully, but these errors were encountered: