forked from goodboy/tractor
Handle not all values pulled case
parent
333fad8819
commit
fa354ffe2b
|
@ -280,7 +280,9 @@ async def stream_from_aio(
|
||||||
# we get double the pulled values in the
|
# we get double the pulled values in the
|
||||||
# ``.subscribe()`` fan out case.
|
# ``.subscribe()`` fan out case.
|
||||||
doubled = list(itertools.chain(*zip(expect, expect)))
|
doubled = list(itertools.chain(*zip(expect, expect)))
|
||||||
assert pulled == doubled
|
if pulled != doubled[:len(pulled)]:
|
||||||
|
print(f'uhhh pulled is {pulled}')
|
||||||
|
assert pulled == doubled[:len(pulled)]
|
||||||
|
|
||||||
else:
|
else:
|
||||||
assert pulled == expect
|
assert pulled == expect
|
||||||
|
|
Loading…
Reference in New Issue