Skip to content

Commit

Permalink
Revert "Enabled HostnameToIPConversionTest.YouTube_Online partially"
Browse files Browse the repository at this point in the history
This reverts commit 6553cde.
  • Loading branch information
yhirose committed Sep 15, 2024
1 parent 6553cde commit 6c93aea
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions test/test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -734,17 +734,19 @@ TEST(HostnameToIPConversionTest, HTTPWatch_Online) {
EXPECT_EQ(1u, addrs.size());
}

#if 0 // It depends on each test environment...
TEST(HostnameToIPConversionTest, YouTube_Online) {
auto host = "www.youtube.com";

std::vector<std::string> addrs;
hosted_at(host, addrs);

EXPECT_EQ(20u, addrs.size());

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

TEST(ChunkedEncodingTest, WithContentReceiver_Online) {
auto host = "www.httpwatch.com";
Expand Down

0 comments on commit 6c93aea

Please sign in to comment.