Updated tests

This commit is contained in:
gabime
2018-06-12 22:43:49 +03:00
parent cdbf2e361b
commit 81fa788bca
5 changed files with 18 additions and 23 deletions

View File

@@ -11,7 +11,8 @@ static const std::string target_filename = "logs/file_helper_test.txt";
static void write_with_helper(file_helper &helper, size_t howmany)
{
log_msg msg;
msg.formatted << std::string(howmany, '1');
fmt::format_to(msg.formatted, "{}", std::string(howmany, '1'));
helper.write(msg);
helper.flush();
}