Skip to content

Commit f56186c

Browse files
committed
fix: indentation, do not close loop
1 parent 2d7c33d commit f56186c

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

test/core/pipeline/features/conftest.py

+2-5
Original file line numberDiff line numberDiff line change
@@ -70,15 +70,13 @@ def run_async_pipeline(
7070
results: List[_PipelineResult] = []
7171

7272
async def run_inner(data, include_outputs_from):
73-
"""Wrapper function to call pipeline.run_async method with required params."""
74-
73+
"""Wrapper function to call pipeline.run_async method with required params."""
7574
return await pipeline.run_async(data=data.inputs, include_outputs_from=include_outputs_from)
7675

7776
for data in pipeline_run_data:
7877
try:
7978
outputs = asyncio.run(run_inner(data, data.include_outputs_from))
8079

81-
8280
component_calls = {
8381
(span.tags["haystack.component.name"], span.tags["haystack.component.visits"]): span.tags[
8482
"haystack.component.input"
@@ -90,8 +88,7 @@ async def run_inner(data, include_outputs_from):
9088
spying_tracer.spans.clear()
9189
except Exception as e:
9290
return e
93-
finally:
94-
async_loop.close()
91+
9592
return [e for e in zip(results, pipeline_run_data)]
9693

9794

0 commit comments

Comments
 (0)