Use ETH on kraken to ensure enough quotes

agg_feedz
Tyler Goodlet 2022-12-10 15:32:09 -05:00
parent 5d021ffb85
commit b7e1443618
1 changed files with 3 additions and 3 deletions

View File

@ -25,10 +25,10 @@ from piker.data._source import (
(100, {'btcusdt.binance', 'ethusdt.binance'}), (100, {'btcusdt.binance', 'ethusdt.binance'}),
# kraken # kraken
(20, {'xbteur.kraken', 'xbtusd.kraken'}), (20, {'ethusdt.kraken', 'xbtusd.kraken'}),
# binance + kraken # binance + kraken
(200, {'btcusdt.binance', 'xbtusd.kraken'}), (100, {'btcusdt.binance', 'xbtusd.kraken'}),
], ],
ids=lambda param: f'quotes={param[0]}@fqsns={param[1]}', ids=lambda param: f'quotes={param[0]}@fqsns={param[1]}',
) )
@ -96,7 +96,7 @@ def test_multi_fqsn_feed(
assert quote['last'] == flume.first_quote['last'] assert quote['last'] == flume.first_quote['last']
cntr = Counter() cntr = Counter()
with trio.fail_after(5): with trio.fail_after(6):
async for quotes in stream: async for quotes in stream:
for fqsn, quote in quotes.items(): for fqsn, quote in quotes.items():
cntr[fqsn] += 1 cntr[fqsn] += 1