[core] power manager write exception is fixed and taxi test is fixed.

This commit is contained in:
Arsentiy Milchakov 2019-07-29 15:31:56 +03:00 committed by Aleksey Belousov
parent c69558e127
commit b050d3c5dc
2 changed files with 2 additions and 3 deletions

View file

@ -209,7 +209,7 @@ bool PowerManager::Save()
{
LOG(LERROR, ("Cannot serialize power manager data into file. Exception:", ex.Msg()));
}
catch (FileReader::Exception const & ex)
catch (FileWriter::Exception const & ex)
{
LOG(LERROR, ("Cannot write power manager file. Exception:", ex.Msg()));
}

View file

@ -515,8 +515,7 @@ UNIT_TEST(TaxiEngine_GetProvidersAtPos)
engine.SetDelegate(std::make_unique<UsaDelegate>());
providers = engine.GetProvidersAtPos(latlon);
TEST_EQUAL(providers.size(), 1, ());
TEST_EQUAL(providers[0], taxi::Provider::Type::Uber, ());
TEST(providers.empty(), ());
engine.SetDelegate(std::make_unique<RussiaSochiDelegate>());
providers = engine.GetProvidersAtPos(latlon);