fix(wave11): resolve adversarial review findings in EventBus, IO, and Runtime

This commit is contained in:
faumaray committed 2026-12-01 22:03:35 +03:00
1 parent 7bea7df46d
commit c6de7842f7
10 files changed
+871 -134

No files matched your search

+24
View File
@@ -267,3 +267,27 @@ Void::Testing::Test io_pump_until_exits_after_shutdown_complete()
require(scope.join_pumping(exec).has_value());
}
}
Void::Testing::Test io_pump_until_mock_max_wait_paces_idle_turns()
{
ManualExecutor exec;
const auto& clock = Void::Time::SystemMonotonicClock::instance();
auto drv_res = Driver::create(
exec, BackendOptions{.preference = BackendPreference::mock}, clock);
require(drv_res.has_value());
Driver& drv = **drv_res;
auto res = pump_until(
drv,
exec,
[] { return false; },
PumpOptions{
.max_wait = 5ms,
.max_turns = 200,
.operation = OperationOptions{.deadline = clock.now() + 20ms},
});
require(!res.has_value());
expect_eq(res.error().code().value,
static_cast<std::int32_t>(IoErrorCode::timeout));
expect(drv.telemetry().turns < std::uint64_t{100});
}