-
-
Notifications
You must be signed in to change notification settings - Fork 202
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
tests fail intermittently with 400 #57
Comments
Interesting. Thanks for the details. Will have a look. If you find any additional info please pass it along. Curious if you have any additional insight as to where it may be going wrong. It sounds like a potentially shared instance of the validator or some internal validator state is used across all the express servers that you are spinning up. It would be fantastic if you are able to put together a simple example to demonstrate the problem. Having something reproducible certainly makes it easier to debug and resolve. |
closing this out due to inactivity. i believe this is resolved by #81 |
When I'm running tests where I'm spinning up new instances of express servers between suites, I'm getting intermittent 400 errors for the tests that deal with a particular POST endpoint (requestBody validation). The failure happens about once every couple of tries.
When I mock the validator or comment it out, all the tests pass consistently.
I'm not absolutely sure, but my hunch is that the test is running while the app is still in the "installation" phase. Is there a possibility of adding a callback or letting install() return a promise?
for reference, the tests that are failing are these:
and
The text was updated successfully, but these errors were encountered: