We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ddc2dc2 commit e59b451Copy full SHA for e59b451
src/coro_rpc/tests/test_coro_rpc_client.cpp
@@ -220,8 +220,16 @@ TEST_CASE("testing client with local ip") {
220
221
std::string local_ip = get_first_local_ip();
222
ELOG_INFO << "local ip: " << local_ip;
223
+
224
+// Due to windows strong host mode, we cant connect to localhost from specify
225
+// nic ip address
226
+#ifndef _WIN32
227
+ std::string target_ip = "127.0.0.1";
228
+#else
229
+ std::string target_ip = local_ip;
230
+#endif
231
coro_rpc_client client(local_ip);
- auto ec = client.sync_connect("127.0.0.1", "8901");
232
+ auto ec = client.sync_connect(target_ip, "8901");
233
REQUIRE_MESSAGE(!ec, ec.message());
234
235
auto ret = client.sync_call<hello>();
0 commit comments