t0130: use startup_cluster() from iptb-lib.sh
License: MIT Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
Christian Couder committed
Feb 1, 2016 at 23:23 UTC
79b6297770c710487b10785ce82adfa87041a3fd
1 file changed
+1
-19
test/sharness/t0130-multinode.sh
+1
-19
@@ -8,24 +8,6 @@ test_description="Test multiple ipfs nodes"
8
9
. lib/test-lib.sh
10
11
-startup_cluster() {
12
- test_expect_success "start up nodes" '
13
- iptb start
14
- '
15
-
16
- test_expect_success "connect nodes to eachother" '
17
- iptb connect [1-4] 0
18
- '
19
-
20
- test_expect_success "nodes are connected" '
21
- check_has_connection 0 &&
22
- check_has_connection 1 &&
23
- check_has_connection 2 &&
24
- check_has_connection 3 &&
25
- check_has_connection 4
26
- '
27
-}
28
-
11
check_file_fetch() {
12
node=$1
13
fhash=$2
@@ -41,7 +23,7 @@ check_file_fetch() {
23
}
24
25
run_basic_test() {
44
- startup_cluster
26
+ startup_cluster 5
27
28
test_expect_success "add a file on node1" '
29
random 1000000 > filea &&