-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
APIv2 tests: try again to fix them #8000
APIv2 tests: try again to fix them #8000
Conversation
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: edsantiago The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
test/apiv2/01-basic.at
Outdated
@@ -68,7 +68,7 @@ for i in $(seq 1 10); do | |||
done | |||
t1=$SECONDS | |||
delta_t=$((t1 - t2)) | |||
if [ $delta_t -le 5 ]; then | |||
if [ $delta_t -le 7 ]; then | |||
_show_ok 1 "Time for ten /info requests ($delta_t seconds) <= 5s" |
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.
Should this be 7 seconds?
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.
Argh. That's exactly why I hate duplication. Fixed, and refactored so it shouldn't happen again the next time we have to bump up the time limit. Thank you for catching that.
CI discovered that a lot of networking tests are failing; my fault, for not having run my tests as root on my laptop. Disable those. Also: bump up the ten-request time limit, from 5 to 7 seconds. Looks like something keeps getting slower and slower, but I guess there's not much we can do about it. Also: when we get a mismatch response code (e.g. 500 when we expect 200), dump the response body and skip any subsequent response checks. Signed-off-by: Ed Santiago <[email protected]>
9f326f0
to
2a6a3f3
Compare
Cirrus flake again, |
Yet another |
LGTM |
/lgtm |
CI discovered that a lot of networking tests are failing; my
fault, for not having run my tests as root on my laptop.
Disable those.
Also: bump up the ten-request time limit, from 5 to 7 seconds.
Looks like something keeps getting slower and slower, but I
guess there's not much we can do about it.
Also: when we get a mismatch response code (e.g. 500 when we
expect 200), dump the response body and skip any subsequent
response checks.
Signed-off-by: Ed Santiago [email protected]