@@ -272,16 +272,16 @@ describe('KadDHT', () => {
272272 it ( 'put - get with custom namespace selector keeps highest seq across 3 peers' , async function ( ) {
273273 this . timeout ( 20 * 1000 )
274274
275- const key = uint8ArrayFromString ( '/testns /hello' )
275+ const key = uint8ArrayFromString ( '/ns /hello' )
276276 const encode = ( seq : number , value : string ) : Uint8Array => uint8ArrayFromString ( JSON . stringify ( { seq, value } ) )
277277 const getSeq = ( buf : Uint8Array ) : number => JSON . parse ( uint8ArrayToString ( buf ) ) . seq
278278
279- const testNsOptions = {
279+ const testOptions = {
280280 validators : {
281- testns : sinon . stub ( ) . resolves ( )
281+ ns : sinon . stub ( ) . resolves ( )
282282 } ,
283283 selectors : {
284- testns : ( _key : Uint8Array , records : Uint8Array [ ] ) => {
284+ ns : ( _key : Uint8Array , records : Uint8Array [ ] ) => {
285285 let bestIndex = 0
286286 let bestSeq = - 1
287287
@@ -300,9 +300,9 @@ describe('KadDHT', () => {
300300 }
301301
302302 const [ dhtA , dhtB , dhtC ] = await Promise . all ( [
303- testDHT . spawn ( testNsOptions ) ,
304- testDHT . spawn ( testNsOptions ) ,
305- testDHT . spawn ( testNsOptions )
303+ testDHT . spawn ( testOptions ) ,
304+ testDHT . spawn ( testOptions ) ,
305+ testDHT . spawn ( testOptions )
306306 ] )
307307
308308 await Promise . all ( [
0 commit comments