Skip to content

Commit

Permalink
Handle not all values pulled case
Browse files Browse the repository at this point in the history
  • Loading branch information
goodboy committed Apr 12, 2022
1 parent 333fad8 commit edfb25e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_infected_asyncio.py
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ async def consume(
# we get double the pulled values in the
# ``.subscribe()`` fan out case.
doubled = list(itertools.chain(*zip(expect, expect)))
assert pulled == doubled
assert pulled == doubled[:len(pulled)]

else:
assert pulled == expect
Expand Down

0 comments on commit edfb25e

Please sign in to comment.