From da05a3770f65bb1404c80edda7ac0df46b0670f8 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sat, 23 Apr 2022 18:03:25 +0100 Subject: [PATCH] Use address of www.wxwidgets.org instead of its name in HTTP URLs The name resolves to Cloudflare proxy which redirects all HTTP URLs to HTTPS, which breaks the existing tests using HTTP, so prevent this from happening by using the actual IP address instead. --- tests/image/image.cpp | 5 +++-- tests/test.cpp | 2 +- tests/uris/url.cpp | 3 ++- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/tests/image/image.cpp b/tests/image/image.cpp index 8272beb6d5..1f43fb810e 100644 --- a/tests/image/image.cpp +++ b/tests/image/image.cpp @@ -171,13 +171,14 @@ void ImageTestCase::LoadFromSocketStream() return; } + // These URLs use the real IP address of www.wxwidgets.org. struct { const char* url; wxBitmapType type; } testData[] = { - { "http://www.wxwidgets.org/assets/img/header-logo.png", wxBITMAP_TYPE_PNG }, - { "http://www.wxwidgets.org/assets/ico/favicon-1.ico", wxBITMAP_TYPE_ICO } + { "http://173.254.92.22/assets/img/header-logo.png", wxBITMAP_TYPE_PNG }, + { "http://173.254.92.22/assets/ico/favicon-1.ico", wxBITMAP_TYPE_ICO } }; for (unsigned int i=0; i in_stream(url.GetInputStream());