Looking for some @rustlang help.
How can I spin up a bunch of web servers (e.g. an actix-web app) at the beginning of a test, run the test logic and then shut down the server when the test ends?
-
-
Perhaps an overly simplistic idea, but why not docker-compose? (If you’re not trying to really interrogate the apps themselves)
-
That is possible, defining an API to set expectations and mocks on the server, but it would also mean that I need to execute the tests sequentially to make sure they don't interfere with each other.
- 3 more replies
New conversation -
-
-
I can suggest writing a Kaos test: * which will spawn bunch of servers that contains flunk points in them * trigger their flunk after a certain duration * catch the panic from all & ignore that. (You can use Error too) * look to expectations of your code. https://docs.rs/kaos/0.1.1-alpha.2/kaos/index.html …
-
That's super interesting! I was also looking at https://github.com/pingcap/failpoint … from PingCap. But that's step 2 for me - step 1: if this 3rd party API call returns this HTTP response when prompted with this request and I ask my API to perform this command, does it work as expected?
- 6 more replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
Writing about stuff to learn how it works, mostly in Rust.
Lead Engineer at