From ed36edde411a35b11ab5f335de53c9ed8bd8002a Mon Sep 17 00:00:00 2001 From: kshitijk4poor <82637225+kshitijk4poor@users.noreply.github.com> Date: Fri, 10 Jul 2026 12:18:02 +0530 Subject: [PATCH] test(gateway): recognize awaited reset result --- tests/gateway/test_35809_auto_reset_clean_context.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/gateway/test_35809_auto_reset_clean_context.py b/tests/gateway/test_35809_auto_reset_clean_context.py index bf753cc7528..4bc2ef40dc5 100644 --- a/tests/gateway/test_35809_auto_reset_clean_context.py +++ b/tests/gateway/test_35809_auto_reset_clean_context.py @@ -85,6 +85,10 @@ class TestAutoResetBlockReSyncsBinding: for stmt in ast.walk(block): if isinstance(stmt, ast.Assign): val = stmt.value + # reset_session is async at the gateway boundary, so the + # assignment value is Await(Call(...)), not a bare Call. + if isinstance(val, ast.Await): + val = val.value if ( isinstance(val, ast.Call) and isinstance(val.func, ast.Attribute)