[News] Don't fetch motd in unit tests

It's unreliable and not a unit we should test
This commit is contained in:
momo5502 2017-02-06 14:03:25 +01:00
parent 13cffeba17
commit 4d177e3c3f

View File

@ -160,7 +160,7 @@ namespace Components
}).detach(); }).detach();
}); });
if (!Utils::IsWineEnvironment()) if (!Utils::IsWineEnvironment() && !Loader::PerformingUnitTests())
{ {
News::Terminate = false; News::Terminate = false;
News::Thread = std::thread([]() News::Thread = std::thread([]()