Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
Signed-off-by: Sihan Wang <[email protected]>
  • Loading branch information
sihanwang41 committed Sep 28, 2023
1 parent 6915121 commit db1492d
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions python/ray/serve/tests/test_deployment_state.py
Original file line number Diff line number Diff line change
Expand Up @@ -2582,21 +2582,6 @@ def test_default_value(self):
assert actor_replica.health_check_period_s == DEFAULT_HEALTH_CHECK_PERIOD_S
assert actor_replica.health_check_timeout_s == DEFAULT_HEALTH_CHECK_TIMEOUT_S

@patch("ray.util.get_placement_group", lambda *args: "test_pg")
def test_recover(self):
actor_replica = ActorReplicaWrapper(
version=deployment_version("1"),
actor_name="test",
detached=False,
controller_name="test_controller",
replica_tag="test_tag",
deployment_id=DeploymentID("test_deployment", "test_app"),
)
actor_replica._actor_handle = MockActorHandle()
actor_replica.recover()
assert actor_replica._actor_handle.initialize_and_get_metadata_called
assert actor_replica._actor_handle.is_allocated_called


def test_get_active_node_ids(mock_deployment_state_manager_full):
"""Test get_active_node_ids() are collecting the correct node ids
Expand Down

0 comments on commit db1492d

Please sign in to comment.