Skip to content

Commit 26ecda3

Browse files
committed
tests
1 parent 389f0ba commit 26ecda3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/uvw/dns.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ TEST(GetAddrInfo, GetAddrInfoSync) {
8989
auto request = loop->resource<uvw::GetAddrInfoReq>();
9090

9191
ASSERT_TRUE(request->addrInfoSync("irc.freenode.net", "6667").first);
92-
ASSERT_FALSE(request->addrInfoSync("", "6667").first);
92+
ASSERT_FALSE(request->addrInfoSync("", "").first);
9393

9494
loop->run();
9595
}
@@ -113,7 +113,7 @@ TEST(GetNameInfo, GetNameInfo) {
113113
checkNameInfoEvent = true;
114114
});
115115

116-
koRequest->nameInfo(uvw::Addr{ "", 6667 }, -1);
116+
koRequest->nameInfo(uvw::Addr{ "", 0 }, -1);
117117
okRequest->nameInfo("irc.freenode.net", 6667);
118118

119119
loop->run();
@@ -127,7 +127,7 @@ TEST(GetNameInfo, GetNameInfoSync) {
127127
auto loop = uvw::Loop::getDefault();
128128
auto request = loop->resource<uvw::GetNameInfoReq>();
129129

130-
ASSERT_FALSE(request->nameInfoSync(uvw::Addr{ "", 6667 }, -1).first);
130+
ASSERT_FALSE(request->nameInfoSync(uvw::Addr{ "", 0 }, -1).first);
131131
ASSERT_TRUE(request->nameInfoSync("irc.freenode.net", 6667).first);
132132

133133
loop->run();

0 commit comments

Comments
 (0)