From 949b66c0f5f0a32210959adb2cfe94dad7e86ada Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sat, 23 Jan 2021 16:46:02 +0100 Subject: [PATCH] Use a different httpbin mirror by default This one seems slower, but might be more reliable. --- tests/net/webrequest.cpp | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/tests/net/webrequest.cpp b/tests/net/webrequest.cpp index 974a0d3b93..207c053bcc 100644 --- a/tests/net/webrequest.cpp +++ b/tests/net/webrequest.cpp @@ -27,11 +27,15 @@ #include "wx/filename.h" #include "wx/wfstream.h" -// This test uses https://httpbin.org by default, but this can be overridden by -// setting WX_TEST_WEBREQUEST_URL, e.g. when running httpbin locally in a -// docker container. This variable can also be set to a special value "0" to -// disable running the test entirely. -static const char* WX_TEST_WEBREQUEST_URL_DEFAULT = "https://httpbin.org"; +// This test uses httpbin service and by default uses the mirror at the +// location below, which seems to be more reliable than the main site at +// https://httpbin.org. Any other mirror, including a local one, which can be +// set by running kennethreitz/httpbin Docker container, can be used by setting +// WX_TEST_WEBREQUEST_URL environment variable to its URL. +// +// This variable can also be set to a special value "0" to disable running the +// test entirely. +static const char* WX_TEST_WEBREQUEST_URL_DEFAULT = "https://nghttp2.org/httpbin"; class RequestFixture : public wxTimer {