@@ -31,7 +31,7 @@ async def test_normal_execution(self):
3131 parallelize_processing = True ,
3232 )
3333
34- ctx = await pipeline ._run_pipeline (Message ())
34+ ctx = await pipeline ._run_pipeline (Message (), ctx_id = "0" )
3535
3636 assert ctx .labels ._items == {
3737 0 : AbsoluteNodeLabel (flow_name = "flow" , node_name = "node1" ),
@@ -49,7 +49,7 @@ async def test_fallback_node(self):
4949 parallelize_processing = True ,
5050 )
5151
52- ctx = await pipeline ._run_pipeline (Message ())
52+ ctx = await pipeline ._run_pipeline (Message (), ctx_id = "0" )
5353
5454 assert ctx .labels ._items == {
5555 0 : AbsoluteNodeLabel (flow_name = "flow" , node_name = "node" ),
@@ -85,7 +85,7 @@ async def test_default_priority(self, default_priority, result):
8585 default_priority = default_priority ,
8686 )
8787
88- ctx = await pipeline ._run_pipeline (Message ())
88+ ctx = await pipeline ._run_pipeline (Message (), ctx_id = "0" )
8989
9090 assert ctx .last_label .node_name == result
9191
@@ -105,7 +105,7 @@ async def call(self, ctx: Context) -> None:
105105 parallelize_processing = True ,
106106 )
107107
108- ctx = await pipeline ._run_pipeline (Message ())
108+ ctx = await pipeline ._run_pipeline (Message (), ctx_id = "0" )
109109
110110 assert ctx .last_label .node_name == "fallback"
111111 assert log_list [0 ].msg == "Exception occurred during transition processing."
@@ -122,7 +122,7 @@ async def test_empty_response(self, log_event_catcher):
122122 parallelize_processing = True ,
123123 )
124124
125- ctx = await pipeline ._run_pipeline (Message ())
125+ ctx = await pipeline ._run_pipeline (Message (), ctx_id = "0" )
126126
127127 assert ctx .responses == {1 : Message ()}
128128 assert log_list [- 1 ].msg == "Node has empty response."
@@ -142,7 +142,7 @@ async def call(self, ctx: Context) -> MessageInitTypes:
142142 parallelize_processing = True ,
143143 )
144144
145- ctx = await pipeline ._run_pipeline (Message ())
145+ ctx = await pipeline ._run_pipeline (Message (), ctx_id = "0" )
146146
147147 assert ctx .responses == {1 : Message ()}
148148 assert log_list [- 1 ].msg == "Response was not produced."
@@ -162,7 +162,7 @@ async def call(self, ctx: Context) -> None:
162162 parallelize_processing = True ,
163163 )
164164
165- ctx = await pipeline ._run_pipeline (Message ())
165+ ctx = await pipeline ._run_pipeline (Message (), ctx_id = "0" )
166166
167167 assert ctx .responses == {1 : Message ()}
168168 assert log_list [0 ].msg == "Exception occurred during response processing."
0 commit comments