Optimize unit tests.

This commit is contained in:
momo5502 2016-02-05 00:33:06 +01:00
parent 59c1ef8fc1
commit 70d49efac5
2 changed files with 3 additions and 3 deletions

View File

@ -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())
{ {

View File

@ -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"))