diff --git a/test/distributed/elastic/agent/server/test/api_test.py b/test/distributed/elastic/agent/server/test/api_test.py index e1dd16bcf9650..5b5ae3e3cb620 100644 --- a/test/distributed/elastic/agent/server/test/api_test.py +++ b/test/distributed/elastic/agent/server/test/api_test.py @@ -126,7 +126,9 @@ def __init__(self, spec): self.stop_workers_call_count = 0 self.start_workers_call_count = 0 - def _stop_workers(self, worker_group: WorkerGroup) -> None: + def _stop_workers( + self, worker_group: WorkerGroup, is_restart: bool = False + ) -> None: # workers are fake, nothing to stop; just clear the rdzv info worker_group.group_rank = None worker_group.group_world_size = None