Skip to content

Commit bafad49

Browse files
committed
Update codeflash_wrap_decorator.py
1 parent 3c05f97 commit bafad49

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

codeflash/code_utils/codeflash_wrap_decorator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ def codeflash_behavior_async(func: F) -> F:
8787
async def async_wrapper(*args: Any, **kwargs: Any) -> Any: # noqa: ANN401
8888
function_name = func.__name__
8989
line_id = f"{func.__name__}_{func.__code__.co_firstlineno}"
90-
loop_index = os.environ["CODEFLASH_LOOP_INDEX"]
90+
loop_index = int(os.environ["CODEFLASH_LOOP_INDEX"])
9191
test_module_name, test_class_name, test_name = extract_test_context_from_frame()
9292

9393
test_id = f"{test_module_name}:{test_class_name}:{test_name}:{line_id}:{loop_index}"

0 commit comments

Comments
 (0)