We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3c05f97 commit bafad49Copy full SHA for bafad49
1 file changed
codeflash/code_utils/codeflash_wrap_decorator.py
@@ -87,7 +87,7 @@ def codeflash_behavior_async(func: F) -> F:
87
async def async_wrapper(*args: Any, **kwargs: Any) -> Any: # noqa: ANN401
88
function_name = func.__name__
89
line_id = f"{func.__name__}_{func.__code__.co_firstlineno}"
90
- loop_index = os.environ["CODEFLASH_LOOP_INDEX"]
+ loop_index = int(os.environ["CODEFLASH_LOOP_INDEX"])
91
test_module_name, test_class_name, test_name = extract_test_context_from_frame()
92
93
test_id = f"{test_module_name}:{test_class_name}:{test_name}:{line_id}:{loop_index}"
0 commit comments