@@ -37,7 +37,7 @@ TEST(SelectorDirect, select_test) {
3737 TrpcEndpointInfo endpoint1, endpoint2;
3838 endpoint1.host = " 127.0.0.1" ;
3939 endpoint1.port = 1001 ;
40- endpoint2.host = " 192.168 .0.2 " ;
40+ endpoint2.host = " 127.0 .0.1 " ;
4141 endpoint2.port = 1002 ;
4242 endpoints_info.push_back (endpoint1);
4343 endpoints_info.push_back (endpoint2);
@@ -55,7 +55,7 @@ TEST(SelectorDirect, select_test) {
5555 EXPECT_TRUE (endpoint.id != kInvalidEndpointId );
5656
5757 ptr->Select (&select_info, &endpoint);
58- EXPECT_TRUE (endpoint.host == " 192.168 .0.2 " );
58+ EXPECT_TRUE (endpoint.host == " 127.0 .0.1 " );
5959 EXPECT_TRUE (endpoint.port == 1002 );
6060 EXPECT_TRUE (endpoint.id != kInvalidEndpointId );
6161
@@ -66,7 +66,7 @@ TEST(SelectorDirect, select_test) {
6666 auto trpc_codec = std::make_shared<trpc::TrpcClientCodec>();
6767 result.context = MakeRefCounted<ClientContext>(trpc_codec);
6868 result.context ->SetCallerName (" test_service" );
69- result.context ->SetAddr (" 192.168 .0.1" , 1001 );
69+ result.context ->SetAddr (" 127.0 .0.1" , 1001 );
7070 int ret = ptr->ReportInvokeResult (&result);
7171 EXPECT_EQ (0 , ret);
7272
@@ -144,7 +144,7 @@ TEST(SelectorDirect, asyncselect_test) {
144144 TrpcEndpointInfo endpoint1, endpoint2;
145145 endpoint1.host = " 127.0.0.1" ;
146146 endpoint1.port = 1001 ;
147- endpoint2.host = " 192.168 .0.2 " ;
147+ endpoint2.host = " 127.0 .0.1 " ;
148148 endpoint2.port = 1002 ;
149149 endpoints_info.push_back (endpoint1);
150150 endpoints_info.push_back (endpoint2);
@@ -167,7 +167,7 @@ TEST(SelectorDirect, asyncselect_test) {
167167 ptr->AsyncSelect (&select_info).Then ([](Future<trpc::TrpcEndpointInfo>&& fut) {
168168 EXPECT_TRUE (fut.IsReady ());
169169 TrpcEndpointInfo endpoint = fut.GetValue0 ();
170- EXPECT_TRUE (endpoint.host == " 192.168 .0.2 " );
170+ EXPECT_TRUE (endpoint.host == " 127.0 .0.1 " );
171171 EXPECT_TRUE (endpoint.port == 1002 );
172172 return trpc::MakeReadyFuture<>();
173173 });
@@ -216,7 +216,7 @@ TEST(SelectorDirect, endpoint_unique_id_test) {
216216 TrpcEndpointInfo endpoint1, endpoint2;
217217 endpoint1.host = " 127.0.0.1" ;
218218 endpoint1.port = 1001 ;
219- endpoint2.host = " 192.168 .0.2 " ;
219+ endpoint2.host = " 127.0 .0.1 " ;
220220 endpoint2.port = 1002 ;
221221 endpoints_info.push_back (endpoint1);
222222 endpoints_info.push_back (endpoint2);
0 commit comments