[Dashboard] Fix missing actor pid (#13229)

This commit is contained in:
fyrestone
2021-01-13 16:45:12 +08:00
committed by GitHub
parent 0b22341bc9
commit 4853aa96cb
5 changed files with 13 additions and 34 deletions
@@ -121,7 +121,7 @@ def test_actors(disable_aiohttp_cache, ray_start_with_dashboard):
assert "name" in one_entry
assert "numRestarts" in one_entry
assert "pid" in one_entry
all_pids = [entry["pid"] for entry in actors.values()]
all_pids = {entry["pid"] for entry in actors.values()}
assert 0 in all_pids # The infeasible actor
assert len(all_pids) > 1
break