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
WIP: concurrent integration tests #427
Conversation
629c53d
to
0c19837
Compare
CI gets stuck on the |
Eric mentioned alternative fix for making the gateway work in concurrent tests: don't bind to a port. "Interconnect" is able to fake the network layer for our client / server communications in tests. We could do something similar for the gateway. |
We could probably re-use the great API @maan2003 built fedimint/fedimint-api/src/module/mod.rs Lines 42 to 126 in 2cd4cb8
|
Closing this. #497 is a better approach. |
@justinmoon we might still want to switch to portpicker later because we have no guarantee that 4000+((testi_peers*2 + 1)*i) are not used by some other process on the machine |
I think I fixed it here: a4f918a#diff-48b39828fd7e697f30f09e9a1830b0b515e704bc621c47fdeaa597796a0d0abdR180 |
This PR generates random ports for server and gateway to bind to. I pulled in a
portpicker
dependency. That project is just 75 LOC with public domain license, so I think we could just copy any relevant code into our project if this works.