Skip to content

Commit

Permalink
iptb-lib: small improvements
Browse files Browse the repository at this point in the history
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
  • Loading branch information
chriscool committed Feb 4, 2016
1 parent 268ec78 commit 78f2f10
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/sharness/lib/iptb-lib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ check_has_connection() {

startup_cluster() {
num_nodes="$1"
bound=$(expr $num_nodes - 1)
bound=$(expr "$num_nodes" - 1)

test_expect_success "start up nodes" '
iptb start
Expand All @@ -29,7 +29,7 @@ startup_cluster() {
iptb connect [1-$bound] 0
'

for i in $(test_seq 1 $bound)
for i in $(test_seq 0 "$bound")
do
test_expect_success "node $i is connected" '
check_has_connection "$i" ||
Expand Down

0 comments on commit 78f2f10

Please sign in to comment.