Commit f39af41a authored by Juan Batiz-Benet's avatar Juan Batiz-Benet

Merge pull request #1310 from ipfs/fix-iptb-ports

iptb sharness tests: randomize ports
parents b5bd29a5 109a618a
......@@ -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
'
......
......@@ -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
'
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment