Skip to content

Commit f14b6f4

Browse files
committed
Fix core-tests --filter=[core]
1 parent b2ffc7e commit f14b6f4

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

core-tests/src/coroutine/system.cpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,13 +117,16 @@ TEST(coroutine_system, cancel_sleep) {
117117
}
118118

119119
static void test_getaddrinfo(
120-
const char *host, int family, int type, int protocol, const char *service, double timeout) {
120+
const std::string &host, int family, int type, int protocol, const char *service, double timeout) {
121121
std::vector<std::string> ip_list = System::getaddrinfo(host, family, type, protocol, service, timeout);
122122
ASSERT_GT(ip_list.size(), 0);
123123
for (auto &ip : ip_list) {
124124
ASSERT_TRUE(swoole::network::Address::verify_ip(family, ip));
125125
network::Client c(family == AF_INET ? SW_SOCK_TCP : SW_SOCK_TCP6, false);
126-
ASSERT_EQ(c.connect(ip.c_str(), 443), SW_OK);
126+
if (!test::is_github_ci()) {
127+
std::cout << ip.c_str() << "\n";
128+
ASSERT_EQ(c.connect(ip.c_str(), 443), SW_OK);
129+
}
127130
}
128131
}
129132

0 commit comments

Comments
 (0)