diff options
author | Giampaolo Rodola <g.rodola@gmail.com> | 2020-05-18 18:23:21 +0200 |
---|---|---|
committer | Giampaolo Rodola <g.rodola@gmail.com> | 2020-05-18 18:23:21 +0200 |
commit | 7130b3043800077b48c617325fb36358ee1d33ee (patch) | |
tree | 742eb99bbc5738eaca66f82bd790ff5138ff0b38 | |
parent | 291d9c9c766eae248e4394b6e03666dbafe45677 (diff) | |
download | psutil-7130b3043800077b48c617325fb36358ee1d33ee.tar.gz |
memleak test: retries 10 times on CI instead of 5
-rw-r--r-- | psutil/tests/__init__.py | 4 |
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) |