-
Notifications
You must be signed in to change notification settings - Fork 999
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
fix: fix e2e unstable #2684
fix: fix e2e unstable #2684
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
api-testing has the similar way to check if the server is ready. But it cannot send a payload to the endpoint.
I'm wondering if there is an API for the health check. Return status code 200
when the server is ready to accept requests.
@LinuxSuRen Hello, thanks for your reply. I used the login API of hertzbeat to check whether the service is ready, but it seems that the e2e instability is not caused by inaccurate health checks.We have encountered a situation where the API that requires authentication occasionally fails in the test case. Is there a debug mode in api-testing that can output more log information, such as the URL, header, payload of the sent http request, etc. to help us troubleshoot this problem? |
Sure. You can add the log output level flag, such as: |
@LinuxSuRen Thank you. got it |
Current log message warn level |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@Aias00 if no other problem, maybe we can merge it, Let's see if the e2e test after that works. |
sure |
What's changed?
Checklist
Add or update API