@@ -27,7 +27,6 @@ describe('create node', function () {
27
27
28
28
const node = await IPFS . create ( {
29
29
repo : tmpDir ( ) ,
30
- init : { bits : 512 } ,
31
30
config : {
32
31
Addresses : {
33
32
Swarm : [ ]
@@ -47,7 +46,6 @@ describe('create node', function () {
47
46
48
47
const node = await IPFS . create ( {
49
48
repo : tempRepo ,
50
- init : { bits : 512 } ,
51
49
config : {
52
50
Addresses : {
53
51
Swarm : [ ]
@@ -81,7 +79,6 @@ describe('create node', function () {
81
79
82
80
it ( 'should create and initialize but not start' , async ( ) => {
83
81
const ipfs = await IPFS . create ( {
84
- init : { bits : 512 } ,
85
82
start : false ,
86
83
repo : tempRepo ,
87
84
config : { Addresses : { Swarm : [ ] } }
@@ -111,7 +108,7 @@ describe('create node', function () {
111
108
} ) ) . to . eventually . be . rejected ( )
112
109
} )
113
110
114
- it ( 'should init with 1024 key bits' , async function ( ) {
111
+ it ( 'should init RSA key with 1024 key bits' , async function ( ) {
115
112
this . timeout ( 80 * 1000 )
116
113
117
114
const node = await IPFS . create ( {
@@ -144,7 +141,6 @@ describe('create node', function () {
144
141
const ipfs = await IPFS . create ( {
145
142
silent : true ,
146
143
repo : tempRepo ,
147
- init : { bits : 512 } ,
148
144
config : {
149
145
Addresses : {
150
146
Swarm : [ ]
@@ -166,7 +162,6 @@ describe('create node', function () {
166
162
167
163
const node = await IPFS . create ( {
168
164
repo : tempRepo ,
169
- init : { bits : 512 } ,
170
165
config : {
171
166
Addresses : {
172
167
Swarm : [ '/ip4/127.0.0.1/tcp/9977' ]
@@ -188,8 +183,11 @@ describe('create node', function () {
188
183
189
184
const node = await IPFS . create ( {
190
185
repo : tempRepo ,
191
- init : { bits : 512 } ,
192
186
config : {
187
+ Addresses : {
188
+ Swarm : [ ]
189
+ } ,
190
+ Bootstrap : [ ] ,
193
191
Pubsub : {
194
192
Enabled : false
195
193
}
@@ -208,7 +206,6 @@ describe('create node', function () {
208
206
209
207
const node = await IPFS . create ( {
210
208
repo : tempRepo ,
211
- init : { bits : 512 } ,
212
209
config : {
213
210
Addresses : {
214
211
Swarm : [ ]
@@ -226,29 +223,22 @@ describe('create node', function () {
226
223
it ( 'should not share identity with a simultaneously created node' , async function ( ) {
227
224
this . timeout ( 2 * 60 * 1000 )
228
225
229
- let _nodeNumber = 0
230
226
/**
231
227
* @param {import('ipfs-repo').IPFSRepo } repo
232
228
* @returns
233
229
*/
234
230
function createNode ( repo ) {
235
- _nodeNumber ++
236
231
return IPFS . create ( {
237
232
repo,
238
- init : { bits : 512 , emptyRepo : true } ,
233
+ init : { emptyRepo : true } ,
239
234
config : {
240
235
Addresses : {
241
- API : `/ip4/127.0.0.1/tcp/${ 5010 + _nodeNumber } ` ,
242
- Gateway : `/ip4/127.0.0.1/tcp/${ 9090 + _nodeNumber } ` ,
243
- Swarm : isNode
244
- ? [
245
- `/ip4/0.0.0.0/tcp/${ 4010 + _nodeNumber * 2 } `
246
- ]
247
- : [ ]
236
+ Swarm : [ ]
248
237
} ,
249
238
Bootstrap : [ ]
250
239
} ,
251
- preload : { enabled : false }
240
+ preload : { enabled : false } ,
241
+ start : false
252
242
} )
253
243
}
254
244
@@ -267,7 +257,6 @@ describe('create node', function () {
267
257
268
258
const node = await IPFS . create ( {
269
259
repo : tempRepo ,
270
- init : { bits : 512 } ,
271
260
config : {
272
261
Addresses : {
273
262
Swarm : [ ]
@@ -283,7 +272,6 @@ describe('create node', function () {
283
272
it ( 'should error when receiving websocket-star swarm addresses' , async ( ) => {
284
273
const node = await IPFS . create ( {
285
274
repo : tempRepo ,
286
- init : { bits : 512 } ,
287
275
start : false ,
288
276
config : {
289
277
Addresses : {
0 commit comments