diff options
author | Ed Santiago <santiago@redhat.com> | 2020-10-12 13:31:07 -0600 |
---|---|---|
committer | Ed Santiago <santiago@redhat.com> | 2020-10-12 13:57:59 -0600 |
commit | 2a6a3f333bd5c5968e34596c1c6ed93181a5da10 (patch) | |
tree | 415f702754cf5e0b40d0083af4486edc64f92693 /test/apiv2/01-basic.at | |
parent | 5801a3048754a4e1ebedc884be9bd42c55892c4c (diff) | |
download | podman-2a6a3f333bd5c5968e34596c1c6ed93181a5da10.tar.gz podman-2a6a3f333bd5c5968e34596c1c6ed93181a5da10.tar.bz2 podman-2a6a3f333bd5c5968e34596c1c6ed93181a5da10.zip |
APIv2 tests: try again to fix them
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 <santiago@redhat.com>
Diffstat (limited to 'test/apiv2/01-basic.at')
-rw-r--r-- | test/apiv2/01-basic.at | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/test/apiv2/01-basic.at b/test/apiv2/01-basic.at index 541d8cbf1..9d4b04edb 100644 --- a/test/apiv2/01-basic.at +++ b/test/apiv2/01-basic.at @@ -68,10 +68,13 @@ for i in $(seq 1 10); do done t1=$SECONDS delta_t=$((t1 - t2)) -if [ $delta_t -le 5 ]; then - _show_ok 1 "Time for ten /info requests ($delta_t seconds) <= 5s" + +# Desired number of seconds in which we expect to run. +want=7 +if [ $delta_t -le $want ]; then + _show_ok 1 "Time for ten /info requests ($delta_t seconds) <= ${want}s" else - _show_ok 0 "Time for ten /info requests" "<= 5 seconds" "$delta_t seconds" + _show_ok 0 "Time for ten /info requests" "<= $want seconds" "$delta_t seconds" fi # Simple events test (see #7078) |