@@ -363,6 +363,7 @@ describe(`${NodeConnectionManager.name}`, () => {
363363 ) ;
364364 await ncmLocal . nodeConnectionManager . withConnF (
365365 ncmPeer1 . nodeId ,
366+ undefined ,
366367 async ( ) => {
367368 expect ( connectionAndTimer ?. usageCount ) . toBe ( 1 ) ;
368369 expect ( connectionAndTimer ?. timer ) . toBeNull ( ) ;
@@ -391,6 +392,7 @@ describe(`${NodeConnectionManager.name}`, () => {
391392
392393 await ncmLocal . nodeConnectionManager . withConnF (
393394 ncmPeer1 . nodeId ,
395+ undefined ,
394396 async ( connection ) => {
395397 expect ( connection . connectionId ) . toBe ( connectionIds [ 0 ] ) ;
396398 } ,
@@ -401,6 +403,7 @@ describe(`${NodeConnectionManager.name}`, () => {
401403 // Lowest connection is deterministically the same for the peer too
402404 await ncmPeer1 . nodeConnectionManager . withConnF (
403405 ncmLocal . nodeId ,
406+ undefined ,
404407 async ( connection ) => {
405408 expect ( connection . connectionId ) . toBe ( connectionIds [ 0 ] ) ;
406409 } ,
@@ -421,6 +424,7 @@ describe(`${NodeConnectionManager.name}`, () => {
421424 for ( const connectionId of connectionIds ) {
422425 await ncmLocal . nodeConnectionManager . withConnF (
423426 ncmPeer1 . nodeId ,
427+ undefined ,
424428 async ( connection ) => {
425429 // Should always be the lowest alive connectionId
426430 expect ( connection . connectionId ) . toBe ( connectionId ) ;
@@ -437,6 +441,7 @@ describe(`${NodeConnectionManager.name}`, () => {
437441 await expect (
438442 ncmLocal . nodeConnectionManager . withConnF (
439443 ncmPeer1 . nodeId ,
444+ undefined ,
440445 async ( ) => { } ,
441446 ) ,
442447 ) . rejects . toThrow (
@@ -569,6 +574,7 @@ describe(`${NodeConnectionManager.name}`, () => {
569574 // Wait for timeout.
570575 await ncmLocal . nodeConnectionManager . withConnF (
571576 ncmPeer1 . nodeId ,
577+ undefined ,
572578 async ( ) => {
573579 expect ( ncmLocal . nodeConnectionManager . connectionsActive ( ) ) . toBe ( 3 ) ;
574580 await connectionDestroyProm1 ;
@@ -717,12 +723,14 @@ describe(`${NodeConnectionManager.name}`, () => {
717723 // Checking authentication result
718724 await ncmLocal . nodeConnectionManager . withConnF (
719725 ncmPeer1 . nodeId ,
726+ undefined ,
720727 async ( ) => {
721728 // Do nothing
722729 } ,
723730 ) ;
724731 await ncmPeer1 . nodeConnectionManager . withConnF (
725732 ncmLocal . nodeId ,
733+ undefined ,
726734 async ( ) => {
727735 // Do nothing
728736 } ,
@@ -759,6 +767,7 @@ describe(`${NodeConnectionManager.name}`, () => {
759767 // Checking authentication result
760768 const authenticationAttemptP = ncmLocal . nodeConnectionManager . withConnF (
761769 ncmPeer1 . nodeId ,
770+ undefined ,
762771 async ( ) => {
763772 // Do nothing
764773 } ,
@@ -769,6 +778,7 @@ describe(`${NodeConnectionManager.name}`, () => {
769778
770779 const authenticationAttemptP2 = ncmPeer1 . nodeConnectionManager . withConnF (
771780 ncmLocal . nodeId ,
781+ undefined ,
772782 async ( ) => {
773783 // Do nothing
774784 } ,
@@ -806,6 +816,7 @@ describe(`${NodeConnectionManager.name}`, () => {
806816
807817 const authenticationAttemptP = ncmLocal . nodeConnectionManager . withConnF (
808818 ncmPeer1 . nodeId ,
819+ undefined ,
809820 async ( ) => {
810821 // Do nothing
811822 } ,
@@ -815,6 +826,7 @@ describe(`${NodeConnectionManager.name}`, () => {
815826 ) ;
816827 const forwardAuthenticateP = ncmLocal . nodeConnectionManager . withConnF (
817828 ncmPeer1 . nodeId ,
829+ undefined ,
818830 async ( ) => {
819831 // Do nothing
820832 } ,
@@ -824,6 +836,7 @@ describe(`${NodeConnectionManager.name}`, () => {
824836 ) ;
825837 const reverseAuthenticateP = ncmPeer1 . nodeConnectionManager . withConnF (
826838 ncmLocal . nodeId ,
839+ undefined ,
827840 async ( ) => {
828841 // Do nothing
829842 } ,
@@ -861,6 +874,7 @@ describe(`${NodeConnectionManager.name}`, () => {
861874
862875 const authenticationAttemptP = ncmLocal . nodeConnectionManager . withConnF (
863876 ncmPeer1 . nodeId ,
877+ undefined ,
864878 async ( ) => {
865879 // Do nothing
866880 } ,
@@ -898,6 +912,7 @@ describe(`${NodeConnectionManager.name}`, () => {
898912
899913 const authenticationAttemptP = ncmLocal . nodeConnectionManager . withConnF (
900914 ncmPeer1 . nodeId ,
915+ undefined ,
901916 async ( ) => {
902917 // Do nothing
903918 } ,
@@ -946,13 +961,15 @@ describe(`${NodeConnectionManager.name}`, () => {
946961
947962 const forwardAuthenticateP = ncmLocal . nodeConnectionManager . withConnF (
948963 ncmPeer1 . nodeId ,
964+ undefined ,
949965 async ( ) => {
950966 // Do nothing
951967 } ,
952968 ) ;
953969 await expect ( forwardAuthenticateP ) . toResolve ( ) ;
954970 const reverseAuthenticateP = ncmPeer1 . nodeConnectionManager . withConnF (
955971 ncmLocal . nodeId ,
972+ undefined ,
956973 async ( ) => {
957974 // Do nothing
958975 } ,
@@ -962,6 +979,7 @@ describe(`${NodeConnectionManager.name}`, () => {
962979 // Checking RPC again
963980 await ncmLocal . nodeConnectionManager . withConnF (
964981 ncmPeer1 . nodeId ,
982+ undefined ,
965983 async ( conn ) => {
966984 await expect (
967985 conn . rpcClient . unaryCaller ( 'dummyMethod' , { } ) ,
0 commit comments