@@ -10,7 +10,7 @@ const isNode = require('detect-node')
10
10
const IPFS = require ( '../../src' )
11
11
12
12
const DaemonFactory = require ( 'ipfsd-ctl' )
13
- const df = DaemonFactory . create ( { remote : false } )
13
+ const df = DaemonFactory . create ( { type : 'proc' } )
14
14
15
15
describe ( 'bootstrap' , ( ) => {
16
16
if ( ! isNode ) {
@@ -23,7 +23,6 @@ describe('bootstrap', () => {
23
23
before ( function ( done ) {
24
24
this . timeout ( 40 * 1000 )
25
25
df . spawn ( {
26
- type : 'proc' ,
27
26
exec : IPFS ,
28
27
config : {
29
28
Addresses : {
@@ -76,7 +75,7 @@ describe('bootstrap', () => {
76
75
it ( 'add a peer to the bootstrap list' , ( done ) => {
77
76
node . bootstrap . add ( '/ip4/111.111.111.111/tcp/1001/ipfs/QmaCpDMGvV2BGHeYERUEnRQAwe3N8SzbUtfsmvsqQLUVIT' , ( err , res ) => {
78
77
expect ( err ) . to . not . exist ( )
79
- expect ( res ) . to . be . eql ( { Peers : [ '/ip4/111.111.111.111/tcp/1001/ipfs/QmaCpDMGvV2BGHeYERUEnRQAwe3N8SzbUtfsmvsqQLUVIT' ] } )
78
+ expect ( res ) . to . be . eql ( { Peers : [ '/ip4/111.111.111.111/tcp/1001/ipfs/QmaCpDMGvV2BGHeYERUEnRQAwe3N8SzbUtfsmvsqQLUVIT' ] } )
80
79
node . bootstrap . list ( ( err , list ) => {
81
80
expect ( err ) . to . not . exist ( )
82
81
expect ( list . Peers ) . to . deep . equal ( updatedList )
@@ -88,7 +87,7 @@ describe('bootstrap', () => {
88
87
it ( 'remove a peer from the bootstrap list' , ( done ) => {
89
88
node . bootstrap . rm ( '/ip4/111.111.111.111/tcp/1001/ipfs/QmaCpDMGvV2BGHeYERUEnRQAwe3N8SzbUtfsmvsqQLUVIT' , ( err , res ) => {
90
89
expect ( err ) . to . not . exist ( )
91
- expect ( res ) . to . be . eql ( { Peers : [ '/ip4/111.111.111.111/tcp/1001/ipfs/QmaCpDMGvV2BGHeYERUEnRQAwe3N8SzbUtfsmvsqQLUVIT' ] } )
90
+ expect ( res ) . to . be . eql ( { Peers : [ '/ip4/111.111.111.111/tcp/1001/ipfs/QmaCpDMGvV2BGHeYERUEnRQAwe3N8SzbUtfsmvsqQLUVIT' ] } )
92
91
node . bootstrap . list ( ( err , list ) => {
93
92
expect ( err ) . to . not . exist ( )
94
93
expect ( list . Peers ) . to . deep . equal ( defaultList )
0 commit comments