1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
|
From: =?utf-8?q?Pierre-Elliott_B=C3=A9cue?= <peb@debian.org>
Date: Sun, 6 Feb 2022 00:21:33 +0100
Subject: Decrease the MAX_RSS set in test_cluster::test_max_rss
Forwarded: https://github.com/Koed00/django-q/issues/649
On some low consuming architectures, the process RSS fail to exceed the
recycling threshold of 40000 KB.
---
django_q/tests/test_cluster.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/django_q/tests/test_cluster.py b/django_q/tests/test_cluster.py
index 5d92177..0cc99f5 100644
--- a/django_q/tests/test_cluster.py
+++ b/django_q/tests/test_cluster.py
@@ -414,7 +414,7 @@ def test_max_rss(broker, monkeypatch):
stop_event = Event()
cluster_id = uuidlib.uuid4()
# override settings
- monkeypatch.setattr(Conf, "MAX_RSS", 40000)
+ monkeypatch.setattr(Conf, "MAX_RSS", 20000)
monkeypatch.setattr(Conf, "WORKERS", 1)
# set a timer to stop the Sentinel
threading.Timer(3, stop_event.set).start()
|