mirror of
https://github.com/ipfs/kubo.git
synced 2026-03-04 07:48:00 +08:00
iptb-lib: small improvements
License: MIT Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
This commit is contained in:
parent
268ec7899c
commit
78f2f10ccf
@ -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
|
||||
@ -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" ||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user