Optimize unit tests.
This commit is contained in:
parent
59c1ef8fc1
commit
70d49efac5
@ -50,9 +50,9 @@ namespace Components
|
|||||||
|
|
||||||
News::Thread = new std::thread([] ()
|
News::Thread = new std::thread([] ()
|
||||||
{
|
{
|
||||||
Localization::Set("MPUI_CHANGELOG_TEXT", Utils::WebIO("IW4x", "https://iw4xcachep26muba.onion.to/iw4/changelog.txt").Get().data());
|
Localization::Set("MPUI_CHANGELOG_TEXT", Utils::WebIO("IW4x", "https://iw4xcachep26muba.onion.to/iw4/changelog.txt").SetTimeout(5000)->Get().data());
|
||||||
|
|
||||||
std::string data = Utils::WebIO("IW4x", "https://iw4xcachep26muba.onion.to/iw4/motd.txt").Get();
|
std::string data = Utils::WebIO("IW4x", "https://iw4xcachep26muba.onion.to/iw4/motd.txt").SetTimeout(5000)->Get();
|
||||||
|
|
||||||
if (data.size())
|
if (data.size())
|
||||||
{
|
{
|
||||||
|
@ -14,7 +14,7 @@ namespace Main
|
|||||||
{
|
{
|
||||||
DWORD result = (Components::Loader::PerformUnitTests() ? 0 : -1);
|
DWORD result = (Components::Loader::PerformUnitTests() ? 0 : -1);
|
||||||
Components::Loader::Uninitialize();
|
Components::Loader::Uninitialize();
|
||||||
ExitProcess(result);
|
exit(result);
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
if (Components::Flags::HasFlag("tests"))
|
if (Components::Flags::HasFlag("tests"))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user