mirror of
https://github.com/django-q2/django-q2.git
synced 2026-10-09 04:08:12 +08:00
Decrease the MAX_RSS set in test_cluster::test_max_rss (#240)
This commit is contained in:
@@ -487,7 +487,7 @@ def test_max_rss(broker, monkeypatch):
|
|||||||
stop_event = Event()
|
stop_event = Event()
|
||||||
cluster_id = uuidlib.uuid4()
|
cluster_id = uuidlib.uuid4()
|
||||||
# override settings
|
# override settings
|
||||||
monkeypatch.setattr(Conf, "MAX_RSS", 40000)
|
monkeypatch.setattr(Conf, "MAX_RSS", 20000)
|
||||||
monkeypatch.setattr(Conf, "WORKERS", 1)
|
monkeypatch.setattr(Conf, "WORKERS", 1)
|
||||||
# set a timer to stop the Sentinel
|
# set a timer to stop the Sentinel
|
||||||
threading.Timer(3, stop_event.set).start()
|
threading.Timer(3, stop_event.set).start()
|
||||||
|
|||||||
Reference in New Issue
Block a user