From 18a6acd4febe475aff2ac78da266ec264c617b3a Mon Sep 17 00:00:00 2001 From: dmitry krokhin Date: Fri, 15 Sep 2023 18:35:15 +0300 Subject: [PATCH] fix types --- tests/test_performance.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_performance.py b/tests/test_performance.py index 7247db5..064b0d3 100644 --- a/tests/test_performance.py +++ b/tests/test_performance.py @@ -54,7 +54,7 @@ async def test_performance() -> None: await worker.loop(requests-1) for thread in range(1, threads): - pipe = Tube(DummyRequest, Route(thread)).pipe + pipe = Tube(DummyHandler, Route(thread)).pipe assert await queue.storage.length(pipe) == 0 await queue.register( @@ -65,7 +65,7 @@ async def test_performance() -> None: async with measure('worker threads'): await gather(*[ Worker(RuntimeLock(), queue).loop( - (requests-1/threads) - 1 + int(requests-1/threads) - 1 ) ])