github.com/aergoio/aergo@v1.3.1/consensus/impl/raftv2/test/test_slow_leader.sh (about)

     1  #!/usr/bin/env bash
     2  
     3  source test_common.sh
     4  
     5  echo ""
     6  echo "============================== raft server slow leader node test ============================"
     7  echo "description: run aergo. Chain service of leader node works slowly."
     8  echo ""
     9  
    10  make_node.sh
    11  
    12  kill_svr.sh
    13  
    14  DEBUG_CHAIN_BP_SLEEP=10000 run_svr.sh
    15  sleep 5
    16  
    17  # raft에 의해 leader가 바뀌지 않아야 한다. 
    18  isStableLeader 20
    19  ret=$?
    20  if [ "$ret" == "0" ];then
    21  	echo "=========== failed =========================="
    22  	exit 100
    23  fi
    24  echo "=========== succeed =========================="