Add longer timeout on windows

fix_kbi_in_ctx_block
Tyler Goodlet 2021-10-04 12:10:39 -04:00
parent d734dcede4
commit b1235442fb
1 changed files with 5 additions and 1 deletions

View File

@ -2,6 +2,8 @@
Bidirectional streaming and context API.
"""
import platform
import pytest
import trio
import tractor
@ -69,9 +71,11 @@ def test_simple_context(
pointlessly_open_stream,
):
timeout = 1.5 if not platform.system() == 'Windows' else 3
async def main():
with trio.fail_after(1.5):
with trio.fail_after(timeout):
async with tractor.open_nursery() as nursery:
portal = await nursery.start_actor(