diff options
author | Colin Walters <walters@verbum.org> | 2020-03-24 12:24:46 +0000 |
---|---|---|
committer | Colin Walters <walters@verbum.org> | 2020-03-24 12:24:46 +0000 |
commit | ea16f7603d4eb2794d21bdd4ca8ccac4098682c5 (patch) | |
tree | 9344586fb34c9a8dc77cf9ee81fc5e50450fca73 /tests/test-pull-repeated.sh | |
parent | 41d3dfa7b8591c9b388e160b6248aa2ce1d71bbf (diff) | |
download | ostree-ea16f7603d4eb2794d21bdd4ca8ccac4098682c5.tar.gz |
tests/pull-repeated: Bump up retries to match max fails
This test keeps occasionally failing in CI - as expected, because
we retry 8 times for an object but it's completely possible for
us to hit the <0.5% chance of 50% failure 8 times in a row.
Since the max errors from the server is 100, set retries to the
same thing.
Diffstat (limited to 'tests/test-pull-repeated.sh')
-rwxr-xr-x | tests/test-pull-repeated.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test-pull-repeated.sh b/tests/test-pull-repeated.sh index 237a863c..f0ea157e 100755 --- a/tests/test-pull-repeated.sh +++ b/tests/test-pull-repeated.sh @@ -92,8 +92,8 @@ pushd ${test_tmpdir} ostree_repo_init repo --mode=archive ${CMD_PREFIX} ostree --repo=repo remote add --set=gpg-verify=false origin $(cat httpd-address)/ostree/gnomerepo -# Using 8 network retries gives error rate of <0.5%, when --random-408s=50 -${CMD_PREFIX} ostree --repo=repo pull --mirror origin --network-retries=8 main +# We limit 408s above to 100, so 100 retries should be enough always. +${CMD_PREFIX} ostree --repo=repo pull --mirror origin --network-retries=100 main echo "Success with big number of network retries" ${CMD_PREFIX} ostree --repo=repo fsck |