Skip to content

Commit

Permalink
Addressed additional pre-coimmit finding.
Browse files Browse the repository at this point in the history
  • Loading branch information
Vitaly Kruglikov committed Sep 9, 2024
1 parent d81bec3 commit e8875d4
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/xdist/scheduler/isoscope.py
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,9 @@ def remove_node(self, node: WorkerController) -> str | None:
return crashed_test_id

def add_node_collection(
self, node: WorkerController, collection: Sequence[str]
self,
node: WorkerController,
collection: Sequence[str]
) -> None:
"""Register the collected test items from a Remote Worker node.
Expand Down Expand Up @@ -443,7 +445,10 @@ def add_node_collection(
self._workset_queue.add_test(test)

def mark_test_complete(
self, node: WorkerController, item_index: int, duration: float
self,
node: WorkerController,
item_index: int,
duration: float = 0
) -> None:
"""Mark test item as completed by node and remove from pending tests
in the worker and reschedule.
Expand Down

0 comments on commit e8875d4

Please sign in to comment.