From 53d631cf2960795269370a44559b118957abfc6b Mon Sep 17 00:00:00 2001 From: Leo Chen Date: Thu, 14 Mar 2019 21:54:13 +0000 Subject: [PATCH] [test] wait less in txgen for connection Signed-off-by: Leo Chen --- cmd/client/txgen/main.go | 2 +- test/deploy.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/client/txgen/main.go b/cmd/client/txgen/main.go index b707ee864..d392fcbf3 100644 --- a/cmd/client/txgen/main.go +++ b/cmd/client/txgen/main.go @@ -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 } diff --git a/test/deploy.sh b/test/deploy.sh index fb2d491ba..f3480ac66 100755 --- a/test/deploy.sh +++ b/test/deploy.sh @@ -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