Skip to content

Commit 6514edd

Browse files
committed
Fix HostnameToIPConversionTest.YouTube_Online error
1 parent 6553cde commit 6514edd

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

test/test.cc

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -739,7 +739,12 @@ TEST(HostnameToIPConversionTest, YouTube_Online) {
739739

740740
std::vector<std::string> addrs;
741741
hosted_at(host, addrs);
742-
EXPECT_EQ(20u, addrs.size());
742+
743+
#ifdef __linux__
744+
EXPECT_EQ(18u, addrs.size());
745+
#else
746+
EXPECT_EQ(16u, addrs.size());
747+
#endif
743748

744749
// It depends on each test environment...
745750
// auto it = std::find(addrs.begin(), addrs.end(), "2607:f8b0:4006:809::200e");

0 commit comments

Comments
 (0)