summaryrefslogtreecommitdiff
path: root/test/apiv2/01-basic.at
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2020-10-21 07:21:49 -0400
committerGitHub <noreply@github.com>2020-10-21 07:21:49 -0400
commit9d9c58ba64a59fc24d6807f495559ac2ec86b6e8 (patch)
tree58ca4bec0f9494658989eab3150b9b106be6756a /test/apiv2/01-basic.at
parentd5073af6b24239fc94bc6bb184f9df6a979887c6 (diff)
parentf5b3dc976c315976788bfb8b75bd0b8a40509324 (diff)
downloadpodman-9d9c58ba64a59fc24d6807f495559ac2ec86b6e8.tar.gz
podman-9d9c58ba64a59fc24d6807f495559ac2ec86b6e8.tar.bz2
podman-9d9c58ba64a59fc24d6807f495559ac2ec86b6e8.zip
Merge pull request #8065 from edsantiago/flake_tweaks
Tests: Fix common flakes, and improve apiv2 test log
Diffstat (limited to 'test/apiv2/01-basic.at')
-rw-r--r--test/apiv2/01-basic.at8
1 files changed, 6 insertions, 2 deletions
diff --git a/test/apiv2/01-basic.at b/test/apiv2/01-basic.at
index 9d4b04edb..f550d5fc3 100644
--- a/test/apiv2/01-basic.at
+++ b/test/apiv2/01-basic.at
@@ -59,7 +59,10 @@ t GET info 200 \
.DefaultRuntime~.*$runtime \
.MemTotal~[0-9]\\+
-# Timing: make sure server stays responsive
+# Timing: make sure server stays responsive.
+# Because /info may need to check storage, it may be slow the first time.
+# Let's invoke it once to prime caches, then run ten queries in a timed loop.
+t GET info 200
t0=$SECONDS
for i in $(seq 1 10); do
# FIXME: someday: refactor t(), separate out the 'curl' logic so we
@@ -70,7 +73,8 @@ t1=$SECONDS
delta_t=$((t1 - t2))
# Desired number of seconds in which we expect to run.
-want=7
+# FIXME: 10 seconds is a lot! PR #8076 opened to investigate why.
+want=10
if [ $delta_t -le $want ]; then
_show_ok 1 "Time for ten /info requests ($delta_t seconds) <= ${want}s"
else