Make rotating logger failure test deterministic
Release / release (push) Failing after 21m4s

This commit is contained in:
faumaray committed 2026-07-30 02:03:44 +03:00
1 parent f528ef644c
commit c509aa7424
1 file changed
+8 -3
+8 -3
View File
@@ -180,9 +180,14 @@ class RotatingFileLoggerTests : public Void::Testing::Fixture
Void::Testing::Test open_factory_rejects_bad_path()
{
auto r =
RotatingFileLogger::open("/this/path/does/not/exist/app.log");
Void::Testing::expect(!r.has_value());
const auto blocking_parent = dir / "not-a-directory";
{
std::ofstream blocker{blocking_parent};
blocker << "file blocks directory creation";
}
const auto result =
RotatingFileLogger::open(blocking_parent / "app.log");
Void::Testing::expect(!result.has_value());
}
Void::Testing::Test async_rotation_under_load()