[Dashboard][Bugfix] Fix GPU List Bug (#12666)

* Fix bug where None was passed as the empty value for ActorInfo.gpu_stats instead of an empty list

* lint

* dashboard/modules/logical_view

* fix test

* trigger build
This commit is contained in:
Max Fitton
2020-12-20 17:06:49 -08:00
parent d9fc24a7aa
commit f591f6c1c8
2 changed files with 9 additions and 5 deletions
@@ -54,6 +54,13 @@ def test_actor_groups(ray_start_with_dashboard):
assert summary["stateToCount"]["ALIVE"] == 2
entries = actor_groups["Foo"]["entries"]
foo_entry = entries[0]
assert type(foo_entry["gpus"]) is list
assert "timestamp" in foo_entry
assert "actorConstructor" in foo_entry
assert "actorClass" in foo_entry
assert "actorId" in foo_entry
assert "ipAddress" in foo_entry
assert len(entries) == 2
assert "InfeasibleActor" in actor_groups