From a6354fd536fbf646f5a20bfe5ffc34e0f4519188 Mon Sep 17 00:00:00 2001 From: Kirill Fedoseev Date: Wed, 6 Nov 2019 09:03:32 +0300 Subject: [PATCH] Increased prefunding amount for bridge and users --- .circleci/config.yml | 4 ++-- tests/init.sh | 4 ++-- tests/test/index.js | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 0160b08..b20acda 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -151,7 +151,7 @@ jobs: name: "Run dev environment, deploy contracts, prefund accounts" command: | BLOCK_TIME=3 ./demo/start-environment.sh - cat ./tests/config.json | jq .users[].ethAddress | xargs -I {} ./src/test-services/ethereumSend/run.sh {} 100 + cat ./tests/config.json | jq .users[].ethAddress | xargs -I {} ./src/test-services/ethereumSend/run.sh {} 300 - run: name: "Stop dev environment" command: docker kill ganache_side ganache_home @@ -160,7 +160,7 @@ jobs: name: "Prefund bnc addresses" command: | echo "FOREIGN_PRIVATE_KEY=$FOREIGN_PRIVATE_KEY" > ./src/test-services/.keys.$TARGET_NETWORK - cat ./tests/config.json | jq .users[].bncAddress | xargs -I {} ./src/test-services/binanceSend/run.sh {} 100 0.1 + cat ./tests/config.json | jq .users[].bncAddress | xargs -I {} ./src/test-services/binanceSend/run.sh {} 300 0.1 run_tests: executor: bridge/node-dev steps: diff --git a/tests/init.sh b/tests/init.sh index 08a506c..d459a22 100755 --- a/tests/init.sh +++ b/tests/init.sh @@ -7,8 +7,8 @@ docker build -t tss ./src/tss ./demo/start-environment.sh -cat ./tests/config.json | jq .users[].ethAddress | xargs -I {} ./src/test-services/ethereumSend/run.sh {} 100 -cat ./tests/config.json | jq .users[].bncAddress | xargs -I {} ./src/test-services/binanceSend/run.sh {} 100 0.1 +cat ./tests/config.json | jq .users[].ethAddress | xargs -I {} ./src/test-services/ethereumSend/run.sh {} 300 +cat ./tests/config.json | jq .users[].bncAddress | xargs -I {} ./src/test-services/binanceSend/run.sh {} 300 0.1 N=1 ./demo/validator-demo.sh -d N=2 ./demo/validator-demo.sh -d diff --git a/tests/test/index.js b/tests/test/index.js index 03d3131..7f440c4 100644 --- a/tests/test/index.js +++ b/tests/test/index.js @@ -48,11 +48,11 @@ describe('bridge tests', function () { for (let i = 0; i < 3; i += 1) { const userEthBalance = await users[i].getEthBalance() - assert.ok(userEthBalance >= 0.3, `Insufficient ETH balance on ${users[i].ethAddress} in Ethereum network, expected 0.3 ETH, got ${userEthBalance}`) + assert.ok(userEthBalance >= 0.1, `Insufficient ETH balance on ${users[i].ethAddress} in Ethereum network, expected 0.1 ETH, got ${userEthBalance}`) const userErcBalance = await users[i].getErcBalance() assert.ok(userErcBalance >= 200, `Insufficient ERC20 balance on ${users[i].ethAddress} in Ethereum network, expected 200 ERC20, got ${userErcBalance}`) const userBnbBalance = await users[i].getBepBalance() - assert.ok(userBnbBalance >= 0.2, `Insufficient BNB balance on ${users[i].bncAddress} in Binance network, expected 0.2 BNB, got ${userBnbBalance}`) + assert.ok(userBnbBalance >= 0.1, `Insufficient BNB balance on ${users[i].bncAddress} in Binance network, expected 0.1 BNB, got ${userBnbBalance}`) const userBepBalance = await users[i].getBepBalance() assert.ok(userErcBalance >= 200, `Insufficient BEP2 balance on ${users[i].bncAddress} in Binance network, expected 200 ${FOREIGN_ASSET}, got ${userBepBalance}`) }