Skip to content

Commit df1e281

Browse files
committed
asyncio saving task fix
1 parent 0a65186 commit df1e281

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

backend/tests/unit/services/test_execution_service.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -396,6 +396,7 @@ async def test_start_k8s_execution_success(self,
396396
mock_k8s_service.create_execution_pod = AsyncMock()
397397

398398
with patch('asyncio.create_task') as mock_create_task:
399+
mock_create_task.return_value = AsyncMock()
399400
await execution_service._start_k8s_execution(execution_id, script, lang, lang_version)
400401

401402
mock_k8s_service.create_execution_pod.assert_called_once()

0 commit comments

Comments
 (0)