This commit is contained in:
Jason McVetta
2020-02-13 18:17:00 +07:00
parent 3d394b25e4
commit 35848cc80d

View File

@@ -12,7 +12,7 @@ from django_q.conf import Conf
@pytest.mark.django_db
def test_monitor(monkeypatch):
cluster_id = uuid.uuid4()
assert Stat.get(pid=0, cluster_id=4).sentinel == 0
assert Stat.get(pid=0, cluster_id=cluster_id).sentinel == 0
c = Cluster()
c.start()
stats = monitor(run_once=True)