Skip to content

Commit

Permalink
Fix HostnameToIPConversionTest.YouTube_Online error
Browse files Browse the repository at this point in the history
  • Loading branch information
yhirose committed Sep 15, 2024
1 parent 6553cde commit 6514edd
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion test/test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -739,7 +739,12 @@ TEST(HostnameToIPConversionTest, YouTube_Online) {

std::vector<std::string> addrs;
hosted_at(host, addrs);
EXPECT_EQ(20u, addrs.size());

#ifdef __linux__
EXPECT_EQ(18u, addrs.size());
#else
EXPECT_EQ(16u, addrs.size());
#endif

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

0 comments on commit 6514edd

Please sign in to comment.