From 9b1d8bf7b07c8c29d099ba34b164b1873f7eb8c5 Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Wed, 15 Dec 2021 17:50:47 -0500 Subject: [PATCH] Of course, increase the timeout for windows.. --- tests/test_resource_cache.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/test_resource_cache.py b/tests/test_resource_cache.py index f7bf1eb..ae8ff7e 100644 --- a/tests/test_resource_cache.py +++ b/tests/test_resource_cache.py @@ -3,6 +3,7 @@ Async context manager cache api testing: ``trionics.maybe_open_context():`` ''' from contextlib import asynccontextmanager as acm +import platform from typing import Awaitable import trio @@ -65,6 +66,8 @@ def test_open_local_sub_to_stream(): N local tasks using ``trionics.maybe_open_context():``. ''' + timeout = 3 if platform.system() != "Windows" else 10 + async def main(): full = list(range(1000)) @@ -92,7 +95,7 @@ def test_open_local_sub_to_stream(): # TODO: turns out this isn't multi-task entrant XD # We probably need an indepotent entry semantic? - with trio.fail_after(3): + with trio.fail_after(timeout): async with tractor.open_root_actor(): async with ( trio.open_nursery() as nurse,