Skip to content

Commit

Permalink
test: sync with etcd-agent start in functional_pass
Browse files Browse the repository at this point in the history
Fix #8211.

Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
  • Loading branch information
gyuho committed Jul 13, 2017
1 parent 536a5f5 commit 38373b3
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion test
Original file line number Diff line number Diff line change
Expand Up @@ -100,13 +100,21 @@ function functional_pass {
agent_pids="${agent_pids} $pid"
done

for a in 1 2 3; do
echo "Waiting for 'etcd-agent' on ${a}9027..."
while ! nc -z localhost ${a}9027; do
sleep 1
done
done

echo "Starting 'etcd-tester'"
./bin/etcd-tester \
-agent-endpoints "127.0.0.1:19027,127.0.0.1:29027,127.0.0.1:39027" \
-client-ports 12379,22379,32379 \
-peer-ports 12380,22380,32380 \
-limit 1 \
-schedule-cases "0 1 2 3 4 5" \
-exit-on-failure
-exit-on-failure && echo "'etcd-tester' succeeded"
ETCD_TESTER_EXIT_CODE=$?
echo "ETCD_TESTER_EXIT_CODE:" ${ETCD_TESTER_EXIT_CODE}

Expand Down

0 comments on commit 38373b3

Please sign in to comment.