From 8e9896ecb6e2b417a173359be8f12b832ec84ac2 Mon Sep 17 00:00:00 2001 From: Matthias Veit Date: Fri, 8 Nov 2024 12:08:02 +0100 Subject: [PATCH] simplify test --- fixlib/test/asynchronous/stream_test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fixlib/test/asynchronous/stream_test.py b/fixlib/test/asynchronous/stream_test.py index 3030b983bb..342f7ad834 100644 --- a/fixlib/test/asynchronous/stream_test.py +++ b/fixlib/test/asynchronous/stream_test.py @@ -120,4 +120,4 @@ def with_int(foo: int) -> int: async def test_chunks() -> None: assert len([chunk async for chunk in example_stream().chunks(2)]) == 3 assert [chunk async for chunk in example_stream().chunks(2)] == await example_stream().chunks(2).collect() - assert await example_stream().chunks(2).map(Stream.as_list).collect() == [[5, 4], [3, 2], [1]] + assert await example_stream().chunks(2).collect() == [[5, 4], [3, 2], [1]]