mirror of
https://github.com/django-q2/django-q2.git
synced 2026-10-09 01:18:12 +08:00
simple test for monitor
This commit is contained in:
@@ -8,4 +8,9 @@ def test_monitor():
|
||||
stats = monitor(run_once=True)
|
||||
c.stop()
|
||||
assert len(stats) > 0
|
||||
assert stats[0].cluster_id == c.pid
|
||||
found_c = False
|
||||
for stat in stats:
|
||||
if stat.cluster_id == c.pid:
|
||||
found_c = True
|
||||
break
|
||||
assert found_c is True
|
||||
|
||||
Reference in New Issue
Block a user