From 1c63bb61309b942c160c850e51309d2fa6dad855 Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Tue, 12 Apr 2022 16:13:33 -0400 Subject: [PATCH] Sort fan out results before comparison in test --- tests/test_infected_asyncio.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/tests/test_infected_asyncio.py b/tests/test_infected_asyncio.py index 1cf15b5..37c85fd 100644 --- a/tests/test_infected_asyncio.py +++ b/tests/test_infected_asyncio.py @@ -281,12 +281,7 @@ async def stream_from_aio( # ``.subscribe()`` fan out case. doubled = list(itertools.chain(*zip(expect, expect))) expect = doubled[:len(pulled)] - if pulled != expect: - print( - f'uhhh pulled is {pulled}\n', - f'uhhh expect is {expect}\n', - ) - assert pulled == expect + assert list(sorted(pulled)) == expect else: assert pulled == expect