Skip to content

Commit 4fe685a

Browse files
authored
Allow h2 error message (#1170)
1 parent 2efd9a7 commit 4fe685a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/worker/test_workflow.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3193,7 +3193,10 @@ async def test_workflow_query_rpc_timeout(client: Client):
31933193
)
31943194
assert (
31953195
err.value.status == RPCStatusCode.CANCELLED
3196-
and "timeout" in str(err.value).lower()
3196+
and (
3197+
"timeout" in str(err.value).lower()
3198+
or "http2 error" in str(err.value).lower()
3199+
)
31973200
) or err.value.status == RPCStatusCode.DEADLINE_EXCEEDED
31983201

31993202

0 commit comments

Comments
 (0)