mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-07-15 14:22:43 +00:00
test(gateway): recognize awaited reset result
This commit is contained in:
parent
b196ce80c8
commit
ed36edde41
1 changed files with 4 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue