mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-26 06:36:43 +00:00
integration-tests: update ipc path on ci tests (#1127)
* integration-tests: update ipc path on ci tests * added devnetBorFlags in matic-cli-config.yml --------- Co-authored-by: Pratik Patil <pratikspatil024@gmail.com>
This commit is contained in:
parent
70bebc9335
commit
0c08204d7d
3 changed files with 5 additions and 4 deletions
1
.github/matic-cli-config.yml
vendored
1
.github/matic-cli-config.yml
vendored
|
|
@ -23,3 +23,4 @@ borDockerBuildContext: "../../bor"
|
||||||
heimdallDockerBuildContext: "https://github.com/maticnetwork/heimdall.git#develop"
|
heimdallDockerBuildContext: "https://github.com/maticnetwork/heimdall.git#develop"
|
||||||
sprintSizeBlockNumber:
|
sprintSizeBlockNumber:
|
||||||
- '0'
|
- '0'
|
||||||
|
devnetBorFlags: config,config,config
|
||||||
|
|
|
||||||
|
|
@ -3,8 +3,8 @@ set -e
|
||||||
|
|
||||||
while true
|
while true
|
||||||
do
|
do
|
||||||
peers=$(docker exec bor0 bash -c "bor attach /root/.bor/data/bor.ipc -exec 'admin.peers'")
|
peers=$(docker exec bor0 bash -c "bor attach /root/var/lib/bor/data/bor.ipc -exec 'admin.peers'")
|
||||||
block=$(docker exec bor0 bash -c "bor attach /root/.bor/data/bor.ipc -exec 'eth.blockNumber'")
|
block=$(docker exec bor0 bash -c "bor attach /root/var/lib/bor/data/bor.ipc -exec 'eth.blockNumber'")
|
||||||
|
|
||||||
if [[ -n "$peers" ]] && [[ -n "$block" ]]; then
|
if [[ -n "$peers" ]] && [[ -n "$block" ]]; then
|
||||||
break
|
break
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
balanceInit=$(docker exec bor0 bash -c "bor attach /root/.bor/data/bor.ipc -exec 'Math.round(web3.fromWei(eth.getBalance(eth.accounts[0])))'")
|
balanceInit=$(docker exec bor0 bash -c "bor attach /root/var/lib/bor/data/bor.ipc -exec 'Math.round(web3.fromWei(eth.getBalance(eth.accounts[0])))'")
|
||||||
|
|
||||||
stateSyncFound="false"
|
stateSyncFound="false"
|
||||||
checkpointFound="false"
|
checkpointFound="false"
|
||||||
|
|
@ -11,7 +11,7 @@ start_time=$SECONDS
|
||||||
while true
|
while true
|
||||||
do
|
do
|
||||||
|
|
||||||
balance=$(docker exec bor0 bash -c "bor attach /root/.bor/data/bor.ipc -exec 'Math.round(web3.fromWei(eth.getBalance(eth.accounts[0])))'")
|
balance=$(docker exec bor0 bash -c "bor attach /root/var/lib/bor/data/bor.ipc -exec 'Math.round(web3.fromWei(eth.getBalance(eth.accounts[0])))'")
|
||||||
|
|
||||||
if ! [[ "$balance" =~ ^[0-9]+$ ]]; then
|
if ! [[ "$balance" =~ ^[0-9]+$ ]]; then
|
||||||
echo "Something is wrong! Can't find the balance of first account in bor network."
|
echo "Something is wrong! Can't find the balance of first account in bor network."
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue