Show WX_TEST_WEBREQUEST_URL being used in the test

Make it clear which URL do we actually use.
This commit is contained in:
Vadim Zeitlin 2021-01-25 00:28:11 +01:00
parent 32cdda65bb
commit bde7cfb1a7

View File

@ -50,8 +50,19 @@ public:
// it returns false, as this indicates that web requests tests are disabled.
bool InitBaseURL()
{
if ( !wxGetEnv("WX_TEST_WEBREQUEST_URL", &baseURL) )
if ( wxGetEnv("WX_TEST_WEBREQUEST_URL", &baseURL) )
{
static bool s_shown = false;
if ( !s_shown )
{
s_shown = true;
WARN("Using non-default root URL " << baseURL);
}
}
else
{
baseURL = WX_TEST_WEBREQUEST_URL_DEFAULT;
}
return baseURL != "0";
}