File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,6 @@ class InProc {
27
27
this . initialized = false
28
28
this . started = false
29
29
this . clean = true
30
- this . exec = null
31
30
this . api = null
32
31
this . apiAddr = null
33
32
this . gatewayAddr = null
@@ -66,7 +65,7 @@ class InProc {
66
65
return setImmediate ( ( ) => cb ( null , this ) )
67
66
}
68
67
const IPFS = this . opts . exec
69
- this . api = this . exec = new IPFS ( {
68
+ this . api = new IPFS ( {
70
69
repo : this . path ,
71
70
init : false ,
72
71
start : false ,
@@ -75,8 +74,8 @@ class InProc {
75
74
libp2p : this . opts . libp2p ,
76
75
config : this . opts . config
77
76
} )
78
- this . exec . once ( 'error' , cb )
79
- this . exec . once ( 'ready' , ( ) => cb ( null , this ) )
77
+ this . api . once ( 'error' , cb )
78
+ this . api . once ( 'ready' , ( ) => cb ( null , this ) )
80
79
}
81
80
82
81
setApi ( addr ) {
Original file line number Diff line number Diff line change @@ -192,6 +192,7 @@ tests.forEach((fOpts) => {
192
192
return done ( err )
193
193
}
194
194
195
+ expect ( ipfsd . initialized ) . to . be . false ( )
195
196
ipfsd . init ( ( err ) => {
196
197
expect ( err ) . to . not . exist ( )
197
198
expect ( ipfsd . initialized ) . to . be . true ( )
You can’t perform that action at this time.
0 commit comments