File tree Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -439,16 +439,11 @@ def generate_regression_tests( # noqa: D417
439
439
"test_index" : test_index ,
440
440
"python_version" : platform .python_version (),
441
441
"codeflash_version" : codeflash_version ,
442
- "is_async" : bool ( getattr ( function_to_optimize , " is_async" , False )) ,
442
+ "is_async" : function_to_optimize . is_async ,
443
443
}
444
-
445
- endpoint = "/testgen"
446
- logger .debug (
447
- f"Using unified test generation endpoint for function { function_to_optimize .function_name } (is_async={ payload ['is_async' ]} )"
448
- )
449
-
444
+
450
445
try :
451
- response = self .make_ai_service_request (endpoint , payload = payload , timeout = 600 )
446
+ response = self .make_ai_service_request ("/testgen" , payload = payload , timeout = 600 )
452
447
except requests .exceptions .RequestException as e :
453
448
logger .exception (f"Error generating tests: { e } " )
454
449
ph ("cli-testgen-error-caught" , {"error" : str (e )})
You can’t perform that action at this time.
0 commit comments