tests: add --retry to first curl to avoid failing if siridb-server isn't ready yet
authorPaul Gevers <elbrus@debian.org>
Thu, 23 May 2024 20:33:55 +0000 (22:33 +0200)
committerPaul Gevers <elbrus@debian.org>
Thu, 23 May 2024 20:33:55 +0000 (22:33 +0200)
Closes: #1067705 (hopefully)
debian/tests/http-api

index 3f359c684d0efafc3fb44b5a716c00d3b95b76f9..0a21ee067b4ffa684680e605801bfe8d589e7f2e 100644 (file)
@@ -12,6 +12,7 @@ service siridb-server restart
 echo '* run queries'
 echo '  get-version'
 curl --silent --show-error --location --output res.txt \
+     --retry 10 \
      --request GET 'http://localhost:9020/get-version' \
      --header 'Content-Type: application/json' \
      --header 'Authorization: Basic c2E6c2lyaQ==' || RES=1