@@ -26,7 +26,7 @@ describe('bitswap', function () {
2626 it ( '2 peers' , async function ( ) {
2727 const remote = ( await df . spawn ( { type : 'js' } ) ) . api
2828 const proc = ( await df . spawn ( { type : 'proc' } ) ) . api
29- proc . swarm . connect ( remote . peerId . addresses [ 0 ] )
29+ await proc . swarm . connect ( remote . peerId . addresses [ 0 ] )
3030 const block = await makeBlock ( )
3131
3232 await proc . block . put ( block )
@@ -41,9 +41,9 @@ describe('bitswap', function () {
4141 const remote1 = ( await df . spawn ( { type : 'js' } ) ) . api
4242 const remote2 = ( await df . spawn ( { type : 'js' } ) ) . api
4343 const proc = ( await df . spawn ( { type : 'proc' } ) ) . api
44- proc . swarm . connect ( remote1 . peerId . addresses [ 0 ] )
45- proc . swarm . connect ( remote2 . peerId . addresses [ 0 ] )
46- remote1 . swarm . connect ( remote2 . peerId . addresses [ 0 ] )
44+ await proc . swarm . connect ( remote1 . peerId . addresses [ 0 ] )
45+ await proc . swarm . connect ( remote2 . peerId . addresses [ 0 ] )
46+ await remote1 . swarm . connect ( remote2 . peerId . addresses [ 0 ] )
4747
4848 await remote1 . block . put ( blocks [ 0 ] )
4949 await remote1 . block . put ( blocks [ 1 ] )
@@ -68,7 +68,7 @@ describe('bitswap', function () {
6868 const file = Buffer . from ( `I love IPFS <3 ${ hat ( ) } ` )
6969 const remote = ( await df . spawn ( { type : 'js' } ) ) . api
7070 const proc = ( await df . spawn ( { type : 'proc' } ) ) . api
71- proc . swarm . connect ( remote . peerId . addresses [ 0 ] )
71+ await proc . swarm . connect ( remote . peerId . addresses [ 0 ] )
7272
7373 const files = await all ( remote . add ( [ { path : 'awesome.txt' , content : file } ] ) )
7474 const data = await concat ( proc . cat ( files [ 0 ] . cid ) )
0 commit comments