infinitered / apisauce

Axios + standardized errors + request/response transforms.
MIT License
2.78k stars 184 forks source link

Fixes random test failures by waiting for server to start #282

Closed jamonholmgren closed 2 years ago

jamonholmgren commented 2 years ago

Thanks to @shellscape for the heads-up on this!

We were getting random failures in our test suite due to the tests not waiting for the server(s) to start before running the tests.

This changes createServer to be an async function, which waits for the server to start before initiating the tests.

infinitered-circleci commented 2 years ago

:tada: This PR is included in version 2.1.4 :tada:

The release is available on:

Your semantic-release bot :package::rocket: