1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-06-29 17:36:38 +08:00

iptb sharness tests: randomize ports

Otherwise they clash with each other if running on the same machine
This commit is contained in:
Juan Batiz-Benet
2015-05-31 14:58:58 -07:00
parent b5bd29a5d7
commit 109a618aca
2 changed files with 5 additions and 2 deletions

View File

@ -10,8 +10,10 @@ test_description="Test ipfs repo operations"
export IPTB_ROOT="`pwd`/.iptb"
test_expect_success "set up an iptb cluster" '
iptb -n=4 -p=9000 init &&
IPTB_PORT=$((RANDOM % 10000 + 22000)) &&
iptb -n=4 "-p=$IPTB_PORT" init &&
iptb -wait start
'

View File

@ -11,7 +11,8 @@ test_description="Test multiple ipfs nodes"
export IPTB_ROOT="`pwd`/.iptb"
test_expect_success "set up a few nodes" '
iptb -n=3 -p=9200 init &&
IPTB_PORT=$((RANDOM % 10000 + 22000)) &&
iptb -n=3 "-p=$IPTB_PORT" init &&
iptb -wait start
'