Increased prefunding amount for bridge and users

This commit is contained in:
Kirill Fedoseev 2019-11-06 09:03:32 +03:00
parent a19ccdc68e
commit a6354fd536
3 changed files with 6 additions and 6 deletions

View File

@ -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:

View File

@ -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

View File

@ -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}`)
}