This repository was archived by the owner on Mar 10, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +34
-26
lines changed Expand file tree Collapse file tree 2 files changed +34
-26
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ describe('.name', () => {
24
24
let testFileCid
25
25
26
26
before ( function ( done ) {
27
- this . timeout ( 20 * 1000 )
27
+ this . timeout ( 30 * 1000 )
28
28
29
29
series ( [
30
30
( cb ) => {
@@ -44,18 +44,22 @@ describe('.name', () => {
44
44
} )
45
45
} ,
46
46
( cb ) => {
47
- ipfsd . api . id ( ( err , id ) => {
48
- expect ( err ) . to . not . exist ( )
49
- const ma = id . addresses [ 0 ]
50
- other . swarm . connect ( ma , cb )
51
- } )
52
- } ,
53
- ( cb ) => {
54
- ipfs . files . add ( testfile , ( err , res ) => {
55
- expect ( err ) . to . not . exist ( )
56
- testFileCid = res [ 0 ] . hash
57
- cb ( )
58
- } )
47
+ parallel ( [
48
+ ( cb ) => {
49
+ ipfs . id ( ( err , id ) => {
50
+ expect ( err ) . to . not . exist ( )
51
+ const ma = id . addresses [ 0 ]
52
+ other . swarm . connect ( ma , cb )
53
+ } )
54
+ } ,
55
+ ( cb ) => {
56
+ ipfs . files . add ( testfile , ( err , res ) => {
57
+ expect ( err ) . to . not . exist ( )
58
+ testFileCid = res [ 0 ] . hash
59
+ cb ( )
60
+ } )
61
+ }
62
+ ] , cb )
59
63
}
60
64
] , done )
61
65
} )
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ describe('.ping', function () {
30
30
let otherId
31
31
32
32
before ( function ( done ) {
33
- this . timeout ( 20 * 1000 ) // slow CI
33
+ this . timeout ( 30 * 1000 ) // slow CI
34
34
35
35
series ( [
36
36
( cb ) => {
@@ -50,18 +50,22 @@ describe('.ping', function () {
50
50
} )
51
51
} ,
52
52
( cb ) => {
53
- ipfsd . api . id ( ( err , id ) => {
54
- expect ( err ) . to . not . exist ( )
55
- const ma = id . addresses [ 0 ]
56
- other . swarm . connect ( ma , cb )
57
- } )
58
- } ,
59
- ( cb ) => {
60
- other . id ( ( err , id ) => {
61
- expect ( err ) . to . not . exist ( )
62
- otherId = id . id
63
- cb ( )
64
- } )
53
+ parallel ( [
54
+ ( cb ) => {
55
+ ipfs . id ( ( err , id ) => {
56
+ expect ( err ) . to . not . exist ( )
57
+ const ma = id . addresses [ 0 ]
58
+ other . swarm . connect ( ma , cb )
59
+ } )
60
+ } ,
61
+ ( cb ) => {
62
+ other . id ( ( err , id ) => {
63
+ expect ( err ) . to . not . exist ( )
64
+ otherId = id . id
65
+ cb ( )
66
+ } )
67
+ }
68
+ ] , cb )
65
69
}
66
70
] , done )
67
71
} )
You can’t perform that action at this time.
0 commit comments