From fca9dc73e1abcfb2762723a0a7052fd2094eba61 Mon Sep 17 00:00:00 2001 From: fangfengbin <869218239a@zju.edu.cn> Date: Thu, 19 Mar 2020 11:09:38 +0800 Subject: [PATCH] Fix test_raylet_pending_tasks test case failed (#7636) --- python/ray/tests/test_metrics.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python/ray/tests/test_metrics.py b/python/ray/tests/test_metrics.py index e04577a3f..200c21887 100644 --- a/python/ray/tests/test_metrics.py +++ b/python/ray/tests/test_metrics.py @@ -300,7 +300,10 @@ def test_raylet_pending_tasks(shutdown_only): def __init__(self): self.a = [ActorRequiringGPU.remote() for i in range(4)] - ParentActor.remote() + # If we do not get ParentActor actor handler, reference counter will + # terminate ParentActor. + parent_actor = ParentActor.remote() + assert parent_actor is not None def test_pending_actor(ray_addresses): webui_url = ray_addresses["webui_url"].replace("localhost",