@@ -2006,7 +2006,7 @@ describe('Client service', () => {
20062006 if ( ! nodeAddress ) {
20072007 fail ( 'Node address undefined' ) ;
20082008 }
2009- expect ( nodeAddress . ip ) . toBe ( host ) ;
2009+ expect ( nodeAddress . host ) . toBe ( host ) ;
20102010 expect ( nodeAddress . port ) . toBe ( port ) ;
20112011 } ) ;
20122012 test (
@@ -2051,7 +2051,7 @@ describe('Client service', () => {
20512051 // Case 1: node already exists in the local node graph (no contact required)
20522052 const nodeId = nodeId3 ;
20532053 const nodeAddress : NodeAddress = {
2054- ip : '127.0.0.1' as Host ,
2054+ host : '127.0.0.1' as Host ,
20552055 port : 11111 as Port ,
20562056 } ;
20572057 await nodeManager . setNode ( nodeId , nodeAddress ) ;
@@ -2060,7 +2060,7 @@ describe('Client service', () => {
20602060 nodeMessage . setNodeId ( nodeId ) ;
20612061 const res = await nodesFind ( nodeMessage , callCredentials ) ;
20622062 expect ( res . getNodeId ( ) ) . toEqual ( nodeId ) ;
2063- expect ( res . getAddress ( ) ?. getHost ( ) ) . toEqual ( nodeAddress . ip ) ;
2063+ expect ( res . getAddress ( ) ?. getHost ( ) ) . toEqual ( nodeAddress . host ) ;
20642064 expect ( res . getAddress ( ) ?. getPort ( ) ) . toEqual ( nodeAddress . port ) ;
20652065 } ) ;
20662066 // FIXME: this operation seems to be pretty slow.
@@ -2071,7 +2071,7 @@ describe('Client service', () => {
20712071 // Case 2: node can be found on the remote node
20722072 const nodeId = nodeId1 ;
20732073 const nodeAddress : NodeAddress = {
2074- ip : '127.0.0.1' as Host ,
2074+ host : '127.0.0.1' as Host ,
20752075 port : 11111 as Port ,
20762076 } ;
20772077 // Setting the information on a remote node.
@@ -2084,7 +2084,7 @@ describe('Client service', () => {
20842084 nodeMessage . setNodeId ( nodeId ) ;
20852085 const res = await nodesFind ( nodeMessage , callCredentials ) ;
20862086 expect ( res . getNodeId ( ) ) . toEqual ( nodeId ) ;
2087- expect ( res . getAddress ( ) ?. getHost ( ) ) . toEqual ( nodeAddress . ip ) ;
2087+ expect ( res . getAddress ( ) ?. getHost ( ) ) . toEqual ( nodeAddress . host ) ;
20882088 expect ( res . getAddress ( ) ?. getPort ( ) ) . toEqual ( nodeAddress . port ) ;
20892089 } ,
20902090 global . failedConnectionTimeout * 2 ,
@@ -2098,7 +2098,7 @@ describe('Client service', () => {
20982098 // Server will not be able to connect to this node (the only node in its
20992099 // database), and will therefore not be able to locate the node.
21002100 await server . nodes . setNode ( dummyNode , {
2101- ip : '127.0.0.2' as Host ,
2101+ host : '127.0.0.2' as Host ,
21022102 port : 22222 as Port ,
21032103 } as NodeAddress ) ;
21042104 const nodesFind = grpcUtils . promisifyUnaryCall < nodesPB . Address > (
@@ -2126,7 +2126,7 @@ describe('Client service', () => {
21262126 remoteGestaltNode . id = remoteGestalt . nodes . getNodeId ( ) ;
21272127 await testKeynodeUtils . addRemoteDetails ( polykeyAgent , remoteGestalt ) ;
21282128 await remoteGestalt . nodes . setNode ( nodeManager . getNodeId ( ) , {
2129- ip : polykeyAgent . revProxy . getIngressHost ( ) ,
2129+ host : polykeyAgent . revProxy . getIngressHost ( ) ,
21302130 port : polykeyAgent . revProxy . getIngressPort ( ) ,
21312131 } as NodeAddress ) ;
21322132 await polykeyAgent . acl . setNodePerm ( remoteGestaltNode . id , {
@@ -2216,7 +2216,7 @@ describe('Client service', () => {
22162216 sender = await testKeynodeUtils . setupRemoteKeynode ( { logger } ) ;
22172217
22182218 await sender . nodes . setNode ( node1 . id , {
2219- ip : polykeyAgent . revProxy . getIngressHost ( ) ,
2219+ host : polykeyAgent . revProxy . getIngressHost ( ) ,
22202220 port : polykeyAgent . revProxy . getIngressPort ( ) ,
22212221 } as NodeAddress ) ;
22222222 await receiver . acl . setNodePerm ( node1 . id , {
0 commit comments