summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGiampaolo Rodola <g.rodola@gmail.com>2020-05-18 18:23:21 +0200
committerGiampaolo Rodola <g.rodola@gmail.com>2020-05-18 18:23:21 +0200
commit7130b3043800077b48c617325fb36358ee1d33ee (patch)
tree742eb99bbc5738eaca66f82bd790ff5138ff0b38
parent291d9c9c766eae248e4394b6e03666dbafe45677 (diff)
downloadpsutil-7130b3043800077b48c617325fb36358ee1d33ee.tar.gz
memleak test: retries 10 times on CI instead of 5
-rw-r--r--psutil/tests/__init__.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/psutil/tests/__init__.py b/psutil/tests/__init__.py
index df94d737..d3d02d11 100644
--- a/psutil/tests/__init__.py
+++ b/psutil/tests/__init__.py
@@ -935,7 +935,7 @@ class TestMemoryLeak(PsutilTestCase):
times = 200
warmup_times = 10
tolerance = 0 # memory
- retries = 5
+ retries = 10 if CI_TESTING else 5
verbose = True
_thisproc = psutil.Process()
@@ -998,7 +998,7 @@ class TestMemoryLeak(PsutilTestCase):
msg = "Run #%s: extra-mem=%s, per-call=%s, calls=%s" % (
idx, bytes2human(mem), bytes2human(mem / times), times)
messages.append(msg)
- success = mem <= tolerance or mem < prev_mem
+ success = mem <= tolerance or mem <= prev_mem
if success:
if idx > 1:
self._log(msg)