Use a different httpbin mirror by default
This one seems slower, but might be more reliable.
This commit is contained in:
@@ -27,11 +27,15 @@
|
|||||||
#include "wx/filename.h"
|
#include "wx/filename.h"
|
||||||
#include "wx/wfstream.h"
|
#include "wx/wfstream.h"
|
||||||
|
|
||||||
// This test uses https://httpbin.org by default, but this can be overridden by
|
// This test uses httpbin service and by default uses the mirror at the
|
||||||
// setting WX_TEST_WEBREQUEST_URL, e.g. when running httpbin locally in a
|
// location below, which seems to be more reliable than the main site at
|
||||||
// docker container. This variable can also be set to a special value "0" to
|
// https://httpbin.org. Any other mirror, including a local one, which can be
|
||||||
// disable running the test entirely.
|
// set by running kennethreitz/httpbin Docker container, can be used by setting
|
||||||
static const char* WX_TEST_WEBREQUEST_URL_DEFAULT = "https://httpbin.org";
|
// 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
|
class RequestFixture : public wxTimer
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user