Skip to content

Commit

Permalink
Merge pull request #308 from goodboy/sort_subs_results_infected_aio
Browse files Browse the repository at this point in the history
Sort `.subscribe()` results before comparison in test
  • Loading branch information
goodboy authored Apr 13, 2022
2 parents bfe99f2 + 1c63bb6 commit 6298368
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions tests/test_infected_asyncio.py
Original file line number Diff line number Diff line change
Expand Up @@ -281,12 +281,7 @@ async def consume(
# ``.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
Expand Down

0 comments on commit 6298368

Please sign in to comment.