Adjust `test_streaming_to_actor_cluster` timeout
For forking spawner backends that is. (this commit msg was generated in some part by [`claude-code`][claude-code-gh]) [claude-code-gh]: https://github.com/anthropics/claude-codesubint_forkserver_backend
parent
7d0a53d205
commit
b10011a36e
|
|
@ -77,6 +77,7 @@ async def worker(
|
||||||
@tractor_test
|
@tractor_test
|
||||||
async def test_streaming_to_actor_cluster(
|
async def test_streaming_to_actor_cluster(
|
||||||
tpt_proto: str,
|
tpt_proto: str,
|
||||||
|
is_forking_spawner: bool,
|
||||||
):
|
):
|
||||||
'''
|
'''
|
||||||
Open an actor "cluster" using the (experimental) `._clustering`
|
Open an actor "cluster" using the (experimental) `._clustering`
|
||||||
|
|
@ -88,7 +89,11 @@ async def test_streaming_to_actor_cluster(
|
||||||
f'Test currently fails with tpt-proto={tpt_proto!r}\n'
|
f'Test currently fails with tpt-proto={tpt_proto!r}\n'
|
||||||
)
|
)
|
||||||
|
|
||||||
with trio.fail_after(6):
|
delay: float = (
|
||||||
|
10 if is_forking_spawner
|
||||||
|
else 6
|
||||||
|
)
|
||||||
|
with trio.fail_after(delay):
|
||||||
async with (
|
async with (
|
||||||
open_actor_cluster(modules=[__name__]) as portals,
|
open_actor_cluster(modules=[__name__]) as portals,
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue