Tests: Fixed some clang-tidy warnings

This commit is contained in:
gabime
2018-10-05 15:20:14 +03:00
parent 887a104dd0
commit dea6a7c217
4 changed files with 21 additions and 4 deletions

View File

@@ -83,7 +83,9 @@ TEST_CASE("async_error_handler", "[errors]]")
logger->set_error_handler([=](const std::string &) {
std::ofstream ofs("logs/custom_err.txt");
if (!ofs)
{
throw std::runtime_error("Failed open logs/custom_err.txt");
}
ofs << err_msg;
});
logger->info("Good message #1");