-
Notifications
You must be signed in to change notification settings - Fork 95
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
The server will only be stopped, when it returns 2xx status code #299
Comments
hi! Did u manage to resolve this issues? Im facing similar problem right now |
if u look at source code of this library, they checking for status > 200 && status < 300 |
Currently, I have to keep my test code only for 2xx responses. It seems no perfect solution if I don't want to touch the start-server-and-test code itself. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bug Report
Dear Contributors / Authors
Thanks for your great work. This project is a vital package for my unit test projects.
I am not sure if I did something wrong. But according to my test, this software will only be stopped when the server returns 2xx success status code. In one of my project, my server returns on purpose with a 5xx or 4xx code on some specified condition. I would like to test: 1. If it does returns a proper 4xx or 5xx code; 2. When it does, if it returns with a correct information in message body or HTTP headers.
However, it seems that
start-server-and-test
will retry the request if the server returns a failure, which makes that it is impossible to test on our error handling part.I am not sure if this behavior is by designing or not. I am looking forward to hearing from you.
Best regards,
Kyle Chine
The text was updated successfully, but these errors were encountered: