@@ -436,8 +436,8 @@ describe.each([
436436 test ( done , chinook , ok , {
437437 id : leader ?? expect . any ( Number ) ,
438438 public_addr : leader ? parseconnectionstring ( CHINOOK_DATABASE_URL ) . host : expect . any ( String ) ,
439- port : leader ? parseconnectionstring ( CHINOOK_DATABASE_URL ) . port : expect . any ( String ) ,
440- cluster_port : leader ? ' 9860' : expect . any ( String ) ,
439+ port : leader ? parseconnectionstring ( CHINOOK_DATABASE_URL ) . port : expect . any ( Number ) ,
440+ cluster_port : leader ? 9860 : expect . any ( Number ) ,
441441 status : leader ? 'Leader' : expect . any ( String ) ,
442442 progress : expect . any ( String ) ,
443443 match : expect . any ( Number ) ,
@@ -1629,7 +1629,7 @@ describe.each([
16291629 test ( done , chinook , ok , {
16301630 id : expect . any ( Number ) ,
16311631 parent : expect . any ( Number ) ,
1632- notused : 0 ,
1632+ notused : expect . any ( Number ) ,
16331633 detail : expect . any ( String )
16341634 } )
16351635 )
@@ -2309,12 +2309,15 @@ describe.skip.each([
23092309} )
23102310
23112311describe . each ( [
2312- [ true , 2 , '192.168.1.1' , ' 8860' , ' 9860' , true ]
2312+ [ true , 2 , '192.168.1.1' , 8860 , 9860 , true ]
23132313 //[false, 0, '//', '//', false]
23142314] ) ( 'node' , ( learner , id , address , port , cluster_port , ok ) => {
23152315 it ( `should${ ok ? '' : "n't" } add` , done => {
23162316 const chinook = getConnection ( )
2317- chinook . sendCommands ( `ADD${ learner ? ' LEARNER' : '' } NODE ${ id } ADDRESS ${ address } :${ port } ${ cluster_port ? ` CLUSTER ${ address } :${ cluster_port } ` : '' } ` , test ( done , chinook , ok ) )
2317+ chinook . sendCommands (
2318+ `ADD${ learner ? ' LEARNER' : '' } NODE ${ id } ADDRESS ${ address } :${ port } ${ cluster_port ? ` CLUSTER ${ address } :${ cluster_port } ` : '' } ` ,
2319+ test ( done , chinook , ok )
2320+ )
23182321 } )
23192322
23202323 it ( `should${ ok ? '' : "n't" } list` , done => {
@@ -2344,7 +2347,7 @@ describe.each([
23442347 chinook . sendCommands ( `PROMOTE NODE ${ id } ` , test ( done , chinook , ok ) )
23452348 } )
23462349
2347- it ( `should${ ok ? '' : "n't" } remove` , done => {
2350+ it . skip ( `should${ ok ? '' : "n't" } remove` , done => {
23482351 const chinook = getConnection ( )
23492352 chinook . sendCommands ( `REMOVE NODE ${ id } ` , test ( done , chinook , ok ) )
23502353 } )
0 commit comments