@@ -404,7 +404,7 @@ describe(`${NodeConnectionManager.name} general test`, () => {
404404 const relayNodeId = remotePolykeyAgentA . keyRing . getNodeId ( ) ;
405405
406406 await expect (
407- nodeConnectionManager . holePunchSignalRequest ( targetNodeId , relayNodeId ) ,
407+ nodeConnectionManager . connectionSignalInitial ( targetNodeId , relayNodeId ) ,
408408 ) . rejects . toThrow ( ) ;
409409 await nodeConnectionManager . stop ( ) ;
410410 } ) ;
@@ -448,7 +448,7 @@ describe(`${NodeConnectionManager.name} general test`, () => {
448448 const targetNodeId = remotePolykeyAgentB . keyRing . getNodeId ( ) ;
449449 const relayNodeId = remotePolykeyAgentA . keyRing . getNodeId ( ) ;
450450
451- await nodeConnectionManager . holePunchSignalRequest (
451+ await nodeConnectionManager . connectionSignalInitial (
452452 targetNodeId ,
453453 relayNodeId ,
454454 ) ;
@@ -459,8 +459,9 @@ describe(`${NodeConnectionManager.name} general test`, () => {
459459 for ( const p of signalMapA ) {
460460 await p ;
461461 }
462- // @ts -ignore: kidnap protected property
463- const punchMapB = remotePolykeyAgentB . nodeConnectionManager . activeHolePunchPs ;
462+ const punchMapB =
463+ // @ts -ignore: kidnap protected property
464+ remotePolykeyAgentB . nodeConnectionManager . activeHolePunchPs ;
464465 for await ( const [ , p ] of punchMapB ) {
465466 await p ;
466467 }
@@ -509,7 +510,7 @@ describe(`${NodeConnectionManager.name} general test`, () => {
509510 const relayNodeId = remotePolykeyAgentA . keyRing . getNodeId ( ) ;
510511 // Creating 5 concurrent attempts
511512 const holePunchSignalRequests = [ 1 , 2 , 3 , 4 , 5 ] . map ( ( ) =>
512- nodeConnectionManager . holePunchSignalRequest ( targetNodeId , relayNodeId ) ,
513+ nodeConnectionManager . connectionSignalInitial ( targetNodeId , relayNodeId ) ,
513514 ) ;
514515 // All should resolve immediately and not block
515516 await Promise . all ( holePunchSignalRequests ) ;
@@ -522,8 +523,9 @@ describe(`${NodeConnectionManager.name} general test`, () => {
522523 await p ;
523524 }
524525 // Only one attempt is being made
525- // @ts -ignore: kidnap protected property
526- const punchMapB = remotePolykeyAgentB . nodeConnectionManager . activeHolePunchPs ;
526+ const punchMapB =
527+ // @ts -ignore: kidnap protected property
528+ remotePolykeyAgentB . nodeConnectionManager . activeHolePunchPs ;
527529 expect ( punchMapB . size ) . toBe ( 1 ) ;
528530 // Allow the attempt to complete
529531 waitResolveP ( ) ;
@@ -649,8 +651,9 @@ describe(`${NodeConnectionManager.name} general test`, () => {
649651 for ( const p of signalMapA . values ( ) ) {
650652 await p ;
651653 }
652- // @ts -ignore: kidnap protected property
653- const punchMapB = remotePolykeyAgentB . nodeConnectionManager . activeHolePunchPs ;
654+ const punchMapB =
655+ // @ts -ignore: kidnap protected property
656+ remotePolykeyAgentB . nodeConnectionManager . activeHolePunchPs ;
654657 for ( const [ , p ] of punchMapB ) {
655658 await p ;
656659 }
0 commit comments