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 +4
-8
lines changed Expand file tree Collapse file tree 2 files changed +4
-8
lines changed Original file line number Diff line number Diff line change 3
3
4
4
const chai = require ( 'chai' )
5
5
const dirtyChai = require ( 'dirty-chai' )
6
- const { spawnNodes } = require ( '../utils/spawn' )
7
6
const { getDescribe, getIt } = require ( '../utils/mocha' )
8
7
9
8
const expect = chai . expect
@@ -26,10 +25,9 @@ module.exports = (createCommon, options) => {
26
25
27
26
common . setup ( ( err , factory ) => {
28
27
expect ( err ) . to . not . exist ( )
29
-
30
- spawnNodes ( 2 , factory , ( err , nodes ) => {
28
+ factory . spawnNode ( ( err , node ) => {
31
29
expect ( err ) . to . not . exist ( )
32
- ipfs = nodes [ 0 ]
30
+ ipfs = node
33
31
done ( )
34
32
} )
35
33
} )
Original file line number Diff line number Diff line change 3
3
4
4
const chai = require ( 'chai' )
5
5
const dirtyChai = require ( 'dirty-chai' )
6
- const { spawnNodes } = require ( '../utils/spawn' )
7
6
const { getDescribe, getIt } = require ( '../utils/mocha' )
8
7
9
8
const expect = chai . expect
@@ -26,10 +25,9 @@ module.exports = (createCommon, options) => {
26
25
27
26
common . setup ( ( err , factory ) => {
28
27
expect ( err ) . to . not . exist ( )
29
-
30
- spawnNodes ( 2 , factory , ( err , nodes ) => {
28
+ factory . spawnNode ( ( err , node ) => {
31
29
expect ( err ) . to . not . exist ( )
32
- ipfs = nodes [ 0 ]
30
+ ipfs = node
33
31
done ( )
34
32
} )
35
33
} )
You can’t perform that action at this time.
0 commit comments