From b1235442fb73066f598048277e8cb01cbb551d5a Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Mon, 4 Oct 2021 12:10:39 -0400 Subject: [PATCH] Add longer timeout on windows --- tests/test_2way.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/test_2way.py b/tests/test_2way.py index 4bad958..c038ae4 100644 --- a/tests/test_2way.py +++ b/tests/test_2way.py @@ -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(