aboutsummaryrefslogblamecommitdiffstats
path: root/build/recovery-test.sh
blob: 26f1b69cc86c48e6fb8697f674d04b74b51e973b (plain) (tree)
1
2
3
4
5
6
7
8
9
         
 
      
 




                                                                    



                              
           

                        

                                                                               

        
#!/bin/sh

fail()
{
  # name=ci-fail-$(date +%s).tar.gz
  # tar -zcvf $name test
  # echo "Verify fail and upload $name"
  # go run build/testtool/testtool.go upload $name dexon-prod-builds
  echo
}

endpoint=http://127.0.0.1:8545

timeout=700

echo "Wait for recovery"
if ! go run build/testtool/testtool.go waitForRecovery $endpoint $timeout; then
  fail
  exit 1
fi