1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-06-30 01:52:26 +08:00

t0130: use startup_cluster() from iptb-lib.sh

License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
This commit is contained in:
Christian Couder
2016-02-01 23:23:53 +01:00
parent e0a48ffcf6
commit 79b6297770

View File

@ -8,24 +8,6 @@ test_description="Test multiple ipfs nodes"
. lib/test-lib.sh
startup_cluster() {
test_expect_success "start up nodes" '
iptb start
'
test_expect_success "connect nodes to eachother" '
iptb connect [1-4] 0
'
test_expect_success "nodes are connected" '
check_has_connection 0 &&
check_has_connection 1 &&
check_has_connection 2 &&
check_has_connection 3 &&
check_has_connection 4
'
}
check_file_fetch() {
node=$1
fhash=$2
@ -41,7 +23,7 @@ check_file_fetch() {
}
run_basic_test() {
startup_cluster
startup_cluster 5
test_expect_success "add a file on node1" '
random 1000000 > filea &&