@@ -30,6 +30,8 @@ module.exports = (common) => {
30
30
let nodeA
31
31
let nodeB
32
32
let nodeC
33
+ let nodeD
34
+ let nodeE
33
35
34
36
before ( function ( done ) {
35
37
// CI takes longer to instantiate the daemon, so we need to increase the
@@ -39,6 +41,8 @@ module.exports = (common) => {
39
41
common . setup ( ( err , factory ) => {
40
42
expect ( err ) . to . not . exist ( )
41
43
series ( [
44
+ ( cb ) => spawnWithId ( factory , cb ) ,
45
+ ( cb ) => spawnWithId ( factory , cb ) ,
42
46
( cb ) => spawnWithId ( factory , cb ) ,
43
47
( cb ) => spawnWithId ( factory , cb ) ,
44
48
( cb ) => spawnWithId ( factory , cb )
@@ -48,11 +52,20 @@ module.exports = (common) => {
48
52
nodeA = nodes [ 0 ]
49
53
nodeB = nodes [ 1 ]
50
54
nodeC = nodes [ 2 ]
55
+ nodeD = nodes [ 3 ]
56
+ nodeE = nodes [ 4 ]
51
57
52
58
parallel ( [
53
59
( cb ) => nodeA . swarm . connect ( nodeB . peerId . addresses [ 0 ] , cb ) ,
54
60
( cb ) => nodeB . swarm . connect ( nodeC . peerId . addresses [ 0 ] , cb ) ,
55
- ( cb ) => nodeC . swarm . connect ( nodeA . peerId . addresses [ 0 ] , cb )
61
+ ( cb ) => nodeC . swarm . connect ( nodeA . peerId . addresses [ 0 ] , cb ) ,
62
+ ( cb ) => nodeD . swarm . connect ( nodeA . peerId . addresses [ 0 ] , cb ) ,
63
+ ( cb ) => nodeE . swarm . connect ( nodeA . peerId . addresses [ 0 ] , cb ) ,
64
+ ( cb ) => nodeD . swarm . connect ( nodeB . peerId . addresses [ 0 ] , cb ) ,
65
+ ( cb ) => nodeE . swarm . connect ( nodeB . peerId . addresses [ 0 ] , cb ) ,
66
+ ( cb ) => nodeD . swarm . connect ( nodeC . peerId . addresses [ 0 ] , cb ) ,
67
+ ( cb ) => nodeE . swarm . connect ( nodeC . peerId . addresses [ 0 ] , cb ) ,
68
+ ( cb ) => nodeD . swarm . connect ( nodeE . peerId . addresses [ 0 ] , cb ) ,
56
69
] , done )
57
70
} )
58
71
} )
0 commit comments