Commit 08b67da2 authored by Jérome Perrin's avatar Jérome Perrin

testing/testcase: increase number of retries

We observe that software sometimes fail due to transiant errors such as
DNS/network errors, so increase the default number of retries to build
software from 2 to 10.

Sometimes also instance is failing for monitoring or other errors that
might become OK if we retry more, so increase the default number of
retries for instance from 10 to 20.
parent c498d5de
......@@ -324,7 +324,7 @@ def checkSoftware(slap, software_url):
raise RuntimeError('\n'.join(error_list))
def installSoftwareUrlList(cls, software_url_list, max_retry=2, debug=False):
def installSoftwareUrlList(cls, software_url_list, max_retry=10, debug=False):
# type: (Type[SlapOSInstanceTestCase], Iterable[str], int, bool) -> None
"""Install softwares on the current testing slapos, for use in `setUpModule`.
......@@ -406,9 +406,9 @@ class SlapOSInstanceTestCase(unittest.TestCase):
# can set this to true to enable more verbose output
_verbose = False
# maximum retries for `slapos node instance`
instance_max_retry = 10
instance_max_retry = 20
# maximum retries for `slapos node report`
report_max_retry = 10
report_max_retry = 20
# number of partitions needed for this instance
partition_count = 10
# reference of the default requested partition
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment