@@ -61,7 +61,7 @@ describe('DelegatedContentRouting', function () {
6161    // Spawn our local node and bootstrap the bootstrapper node 
6262    const  self  =  await  spawnNode ( bootstrapId . addresses ) 
6363    selfNode  =  self . node 
64-     selfId  =  PeerId . createFromB58String ( self . id . id ) 
64+     selfId  =  PeerId . parse ( self . id . id ) 
6565
6666    // Spawn the delegate node and bootstrap the bootstrapper node 
6767    const  delegate  =  await  spawnNode ( bootstrapId . addresses ) 
@@ -82,7 +82,7 @@ describe('DelegatedContentRouting', function () {
8282    } ) 
8383
8484    it ( 'should accept an http api client instance at construction time' ,  ( )  =>  { 
85-       const  client  =  ipfsHttpClient ( { 
85+       const  client  =  ipfsHttpClient . create ( { 
8686        protocol : 'http' , 
8787        port : 8000 , 
8888        host : 'localhost' 
@@ -118,7 +118,7 @@ describe('DelegatedContentRouting', function () {
118118
119119    it ( 'should be able to find providers through the delegate node' ,  async  function  ( )  { 
120120      const  opts  =  delegateNode . apiAddr . toOptions ( ) 
121-       const  routing  =  new  DelegatedContentRouting ( selfId ,  ipfsHttpClient ( { 
121+       const  routing  =  new  DelegatedContentRouting ( selfId ,  ipfsHttpClient . create ( { 
122122        protocol : 'http' , 
123123        port : opts . port , 
124124        host : opts . host 
@@ -134,7 +134,7 @@ describe('DelegatedContentRouting', function () {
134134
135135    it ( 'should be able to specify a timeout' ,  async  ( )  =>  { 
136136      const  opts  =  delegateNode . apiAddr . toOptions ( ) 
137-       const  routing  =  new  DelegatedContentRouting ( selfId ,  ipfsHttpClient ( { 
137+       const  routing  =  new  DelegatedContentRouting ( selfId ,  ipfsHttpClient . create ( { 
138138        protocol : 'http' , 
139139        port : opts . port , 
140140        host : opts . host 
@@ -149,7 +149,7 @@ describe('DelegatedContentRouting', function () {
149149  describe ( 'provide' ,  ( )  =>  { 
150150    it ( 'should be able to register as a content provider to the delegate node' ,  async  ( )  =>  { 
151151      const  opts  =  delegateNode . apiAddr . toOptions ( ) 
152-       const  contentRouter  =  new  DelegatedContentRouting ( selfId ,  ipfsHttpClient ( { 
152+       const  contentRouter  =  new  DelegatedContentRouting ( selfId ,  ipfsHttpClient . create ( { 
153153        protocol : 'http' , 
154154        port : opts . port , 
155155        host : opts . host 
@@ -167,7 +167,7 @@ describe('DelegatedContentRouting', function () {
167167
168168    it ( 'should provide non-dag-pb nodes via the delegate node' ,  async  ( )  =>  { 
169169      const  opts  =  delegateNode . apiAddr . toOptions ( ) 
170-       const  contentRouter  =  new  DelegatedContentRouting ( selfId ,  ipfsHttpClient ( { 
170+       const  contentRouter  =  new  DelegatedContentRouting ( selfId ,  ipfsHttpClient . create ( { 
171171        protocol : 'http' , 
172172        port : opts . port , 
173173        host : opts . host 
0 commit comments