From 69fa10d3a6be5af0213a5f499865f8167e7a359f Mon Sep 17 00:00:00 2001 From: Chris Troutner Date: Fri, 26 Mar 2021 08:25:39 -0700 Subject: [PATCH] fix(integration tests): slowing down integration tests for the sake of rate limits --- test/integration/chains/bchn/rawtransaction.js | 2 +- test/integration/chains/bchn/slp.js | 2 +- test/integration/chains/bchn/utxo-integration.js | 2 +- test/integration/slp.js | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/test/integration/chains/bchn/rawtransaction.js b/test/integration/chains/bchn/rawtransaction.js index 0c4f251..c2fe0d1 100644 --- a/test/integration/chains/bchn/rawtransaction.js +++ b/test/integration/chains/bchn/rawtransaction.js @@ -20,7 +20,7 @@ util.inspect.defaultOptions = { describe('#rawtransaction', () => { beforeEach(async () => { - if (process.env.IS_USING_FREE_TIER) await sleep(1000) + if (process.env.IS_USING_FREE_TIER) await sleep(3000) }) /* diff --git a/test/integration/chains/bchn/slp.js b/test/integration/chains/bchn/slp.js index c220bc8..55aa960 100644 --- a/test/integration/chains/bchn/slp.js +++ b/test/integration/chains/bchn/slp.js @@ -25,7 +25,7 @@ describe('#SLP', () => { beforeEach(async () => { // Introduce a delay so that the BVT doesn't trip the rate limits. - if (process.env.IS_USING_FREE_TIER) await sleep(2000) + if (process.env.IS_USING_FREE_TIER) await sleep(3000) bchjs = new BCHJS() }) diff --git a/test/integration/chains/bchn/utxo-integration.js b/test/integration/chains/bchn/utxo-integration.js index da931c5..bcb5a14 100644 --- a/test/integration/chains/bchn/utxo-integration.js +++ b/test/integration/chains/bchn/utxo-integration.js @@ -11,7 +11,7 @@ describe('#UTXO', () => { beforeEach(async () => { // sandbox = sinon.createSandbox() - if (process.env.IS_USING_FREE_TIER) await sleep(2000) + if (process.env.IS_USING_FREE_TIER) await sleep(3000) }) describe('#get', () => { diff --git a/test/integration/slp.js b/test/integration/slp.js index 3a74ce1..daacfeb 100644 --- a/test/integration/slp.js +++ b/test/integration/slp.js @@ -24,7 +24,7 @@ describe('#SLP', () => { beforeEach(async () => { // Introduce a delay so that the BVT doesn't trip the rate limits. - if (process.env.IS_USING_FREE_TIER) await sleep(1000) + if (process.env.IS_USING_FREE_TIER) await sleep(3000) bchjs = new BCHJS() })