@@ -219,9 +219,9 @@ def test_invoke_handler_already_started_with_timeout(status):
219219 mock_result = CheckpointedResult .create_from_operation (operation )
220220 mock_state .get_checkpoint_result .return_value = mock_result
221221
222- config = InvokeConfig [str , str ](timeout = Duration . from_seconds ( 30 ) )
222+ config = InvokeConfig [str , str ]()
223223
224- with pytest .raises (TimedSuspendExecution ):
224+ with pytest .raises (SuspendExecution ):
225225 invoke_handler (
226226 function_name = "test_function" ,
227227 payload = "test_input" ,
@@ -246,7 +246,7 @@ def test_invoke_handler_new_operation():
246246 started = CheckpointedResult .create_from_operation (started_op )
247247 mock_state .get_checkpoint_result .side_effect = [not_found , started ]
248248
249- config = InvokeConfig [str , str ](timeout = Duration . from_minutes ( 1 ) )
249+ config = InvokeConfig [str , str ]()
250250
251251 with pytest .raises (
252252 SuspendExecution , match = "Invoke invoke8 started, suspending for completion"
@@ -285,9 +285,9 @@ def test_invoke_handler_new_operation_with_timeout():
285285 started = CheckpointedResult .create_from_operation (started_op )
286286 mock_state .get_checkpoint_result .side_effect = [not_found , started ]
287287
288- config = InvokeConfig [str , str ](timeout = Duration . from_seconds ( 30 ) )
288+ config = InvokeConfig [str , str ]()
289289
290- with pytest .raises (TimedSuspendExecution ):
290+ with pytest .raises (SuspendExecution ):
291291 invoke_handler (
292292 function_name = "test_function" ,
293293 payload = "test_input" ,
@@ -311,7 +311,7 @@ def test_invoke_handler_new_operation_no_timeout():
311311 started = CheckpointedResult .create_from_operation (started_op )
312312 mock_state .get_checkpoint_result .side_effect = [not_found , started ]
313313
314- config = InvokeConfig [str , str ](timeout = Duration . from_seconds ( 0 ) )
314+ config = InvokeConfig [str , str ]()
315315
316316 with pytest .raises (SuspendExecution ):
317317 invoke_handler (
@@ -1026,7 +1026,7 @@ def test_invoke_immediate_response_with_timeout_immediate_success():
10261026 succeeded = CheckpointedResult .create_from_operation (succeeded_op )
10271027 mock_state .get_checkpoint_result .side_effect = [not_found , succeeded ]
10281028
1029- config = InvokeConfig [str , str ](timeout = Duration . from_seconds ( 30 ) )
1029+ config = InvokeConfig [str , str ]()
10301030
10311031 result = invoke_handler (
10321032 function_name = "test_function" ,
@@ -1061,10 +1061,10 @@ def test_invoke_immediate_response_with_timeout_no_immediate_response():
10611061 started = CheckpointedResult .create_from_operation (started_op )
10621062 mock_state .get_checkpoint_result .side_effect = [not_found , started ]
10631063
1064- config = InvokeConfig [str , str ](timeout = Duration . from_seconds ( 30 ) )
1064+ config = InvokeConfig [str , str ]()
10651065
1066- # Verify operation suspends with timeout
1067- with pytest .raises (TimedSuspendExecution ):
1066+ # Verify operation suspends
1067+ with pytest .raises (SuspendExecution ):
10681068 invoke_handler (
10691069 function_name = "test_function" ,
10701070 payload = "test_input" ,
0 commit comments