Skip to content

Commit bf224e1

Browse files
committed
test: fix process spawner CI stub
1 parent 8166fbc commit bf224e1

File tree

1 file changed

+21
-2
lines changed

1 file changed

+21
-2
lines changed

server/tests/unit/test_process_spawner.py

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,23 @@
1919
)
2020

2121

22+
def _placeholder_conversation_worker(
23+
conv_id: str,
24+
browser_id: str,
25+
command_queue: Queue,
26+
response_queue: Queue,
27+
llm_config: dict,
28+
working_directory: str = ".",
29+
) -> None:
30+
"""Test helper matching the real worker signature."""
31+
_placeholder_worker(
32+
conv_id=conv_id,
33+
browser_id=browser_id,
34+
command_queue=command_queue,
35+
response_queue=response_queue,
36+
)
37+
38+
2239
class TestConversationWorker:
2340
"""Tests for _conversation_worker function."""
2441

@@ -175,7 +192,8 @@ def test_spawn_and_shutdown_multiple_processes(self) -> None:
175192
}
176193

177194
with patch(
178-
"server.core.process_manager._conversation_worker", _placeholder_worker
195+
"server.core.process_manager._conversation_worker",
196+
_placeholder_conversation_worker,
179197
):
180198
for i in range(3):
181199
manager.spawn_with_config(
@@ -210,7 +228,8 @@ def test_process_queues_are_isolated(self) -> None:
210228
}
211229

212230
with patch(
213-
"server.core.process_manager._conversation_worker", _placeholder_worker
231+
"server.core.process_manager._conversation_worker",
232+
_placeholder_conversation_worker,
214233
):
215234
manager.spawn_with_config(
216235
conv_id="conv-1",

0 commit comments

Comments
 (0)