Skip to content

Commit

Permalink
test:start_server empty ip addr in params cause failures
Browse files Browse the repository at this point in the history
  • Loading branch information
suizman committed Apr 2, 2019
1 parent b07a7d6 commit 2bfcb14
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions tests/start_server
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ echo "export TLS=true to allow https"
tdir=$(mktemp -d /var/tmp/demo.XXX)
certs="/var/tmp/certs"

LOCAL_IP=127.0.0.1
if [ ! -z "$PROFILING" ]; then
echo "PROFILING=enabled"
mkdir -p results
Expand All @@ -42,8 +43,9 @@ leader() {
-k test_key \
-p ${tdir}/0/ \
--node-id leader \
--http-addr ${LOCAL_IP}:8800 \
--keypath ${certs}/id_ed25519 \
--gossip-addr 127.0.0.1:8400 \
--gossip-addr ${LOCAL_IP}:8400 \
-l error \
$TLS \
$PROFILING \
Expand All @@ -59,13 +61,13 @@ follower() {
-p ${tdir}/$1 \
--keypath ${certs}/id_ed25519 \
-l error \
--http-addr :880$1 \
--mgmt-addr :870$1 \
--metrics-addr :860$1 \
--raft-addr :850$1 \
--gossip-addr 127.0.0.1:840$1 \
--join-addr 127.0.0.1:8700 \
--gossip-join-addr 127.0.0.1:8400 \
--http-addr ${LOCAL_IP}:880$1 \
--mgmt-addr ${LOCAL_IP}:870$1 \
--metrics-addr ${LOCAL_IP}:860$1 \
--raft-addr ${LOCAL_IP}:850$1 \
--gossip-addr ${LOCAL_IP}:840$1 \
--join-addr ${LOCAL_IP}:8700 \
--gossip-join-addr ${LOCAL_IP}:8400 \
$TLS \
$PROFILING \
&
Expand Down

0 comments on commit 2bfcb14

Please sign in to comment.