Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
wait for uvicorn server to bind before running tests
Previously we had a simple `time.sleep(1)` call after `server.start()` which was present to give the Mint's HTTP server time to spin up during test runs. This meant that if the server took longer than 1s to start on a dev's machine for any reason (even intermittently) then tests would fail due to connection errors. The fix is to use a simple repeated polling check which allows the test runner to start only once the server is confirmed listening.
- Loading branch information