aboutsummaryrefslogtreecommitdiffstats
path: root/packages/pipeline/test
diff options
context:
space:
mode:
authorXianny <8582774+xianny@users.noreply.github.com>2018-12-11 03:01:35 +0800
committerGitHub <noreply@github.com>2018-12-11 03:01:35 +0800
commit02e14f88d234d720341f163bf77325b82a7f3822 (patch)
tree9803a4d5fbf701a0fab8d95a5b129f749c5260a8 /packages/pipeline/test
parentd050a1bd534695288b6da0b01e58aba1dff0e63e (diff)
parent096c4c8f2b20b4ca909d4ba950e219c22a5f8882 (diff)
downloaddexon-sol-tools-02e14f88d234d720341f163bf77325b82a7f3822.tar
dexon-sol-tools-02e14f88d234d720341f163bf77325b82a7f3822.tar.gz
dexon-sol-tools-02e14f88d234d720341f163bf77325b82a7f3822.tar.bz2
dexon-sol-tools-02e14f88d234d720341f163bf77325b82a7f3822.tar.lz
dexon-sol-tools-02e14f88d234d720341f163bf77325b82a7f3822.tar.xz
dexon-sol-tools-02e14f88d234d720341f163bf77325b82a7f3822.tar.zst
dexon-sol-tools-02e14f88d234d720341f163bf77325b82a7f3822.zip
Fix/pipeline/ohlcv ratelimit (#1403)
Use time-based throttling and increase batch size of CC query
Diffstat (limited to 'packages/pipeline/test')
-rw-r--r--packages/pipeline/test/data_sources/ohlcv_external/crypto_compare_test.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/pipeline/test/data_sources/ohlcv_external/crypto_compare_test.ts b/packages/pipeline/test/data_sources/ohlcv_external/crypto_compare_test.ts
index cb374bbb1..2efe3f5ec 100644
--- a/packages/pipeline/test/data_sources/ohlcv_external/crypto_compare_test.ts
+++ b/packages/pipeline/test/data_sources/ohlcv_external/crypto_compare_test.ts
@@ -13,7 +13,7 @@ const expect = chai.expect;
describe('ohlcv_external data source (Crypto Compare)', () => {
describe('generateBackfillIntervals', () => {
it('generates pairs with intervals to query', () => {
- const source = new CryptoCompareOHLCVSource();
+ const source = new CryptoCompareOHLCVSource(20);
const pair: TradingPair = {
fromSymbol: 'ETH',
toSymbol: 'ZRX',
@@ -31,7 +31,7 @@ describe('ohlcv_external data source (Crypto Compare)', () => {
});
it('returns single pair if no backfill is needed', () => {
- const source = new CryptoCompareOHLCVSource();
+ const source = new CryptoCompareOHLCVSource(20);
const pair: TradingPair = {
fromSymbol: 'ETH',
toSymbol: 'ZRX',