[test] wait less in txgen for connection

Signed-off-by: Leo Chen <leo@harmony.one>
pull/573/head
Leo Chen 6 years ago
parent d451a965d3
commit 53d631cf29
  1. 2
      cmd/client/txgen/main.go
  2. 2
      test/deploy.sh

@ -156,7 +156,7 @@ func main() {
go func() {
// wait for 3 seconds for client to send ping message to leader
// FIXME (leo) the readySignal should be set once we really sent ping message to leader
time.Sleep(3 * time.Second) // wait for nodes to be ready
time.Sleep(1 * time.Second) // wait for nodes to be ready
for _, i := range shardIDs {
readySignal <- i
}

@ -163,7 +163,7 @@ fi
if [ "$TXGEN" == "true" ]; then
echo "launching txgen ... wait"
sleep 2
# sleep 2
line=$(grep client $config)
IFS=' ' read ip port mode shardID <<< $line
if [ "$mode" == "client" ]; then

Loading…
Cancel
Save