use both pid and cluster_id

This commit is contained in:
Jason McVetta
2020-02-12 18:23:47 +07:00
parent d22c916bfc
commit 14a602ee8b
4 changed files with 13 additions and 10 deletions
+1 -1
View File
@@ -345,7 +345,7 @@ def test_bad_secret(broker, monkeypatch):
monkeypatch.setattr(Conf, "SECRET_KEY", "OOPS")
stat = Stat.get_all()
assert len(stat) == 0
assert Stat.get(s.parent_pid) is None
assert Stat.get(pid=s.parent_pid, cluster_id=cluster_id) is None
task_queue = Queue()
pusher(task_queue, stop_event, broker=broker)
result_queue = Queue()