Sort fan out results before comparison in test

sort_subs_results_infected_aio
Tyler Goodlet 2022-04-12 16:13:33 -04:00
parent bfe99f29b8
commit 1c63bb6130
1 changed files with 1 additions and 6 deletions

View File

@ -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