From 218efc485cd510079fcb6dc2a462e6e79b5f7a2c Mon Sep 17 00:00:00 2001 From: Morty Space Date: Sun, 19 Jan 2020 00:20:37 +0200 Subject: [PATCH] Make less trades --- tests/test_account.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_account.py b/tests/test_account.py index 8bc8b8f..98e2068 100644 --- a/tests/test_account.py +++ b/tests/test_account.py @@ -97,9 +97,9 @@ async def make_trades(account, order_ids, sem): @pytest.mark.asyncio async def test_account_market_orders(account: cro.Account): order_ids = {'buy': [], 'sell': []} - sem = asyncio.Semaphore(10) + sem = asyncio.Semaphore(4) await asyncio.gather(*[ - make_trades(account, order_ids, sem) for _ in range(20) + make_trades(account, order_ids, sem) for _ in range(8) ]) trades = await account.get_trades(cro.Symbol.CROUSDT, page_size=40)