test(managed): verify timeout budget fairness

This commit is contained in:
Nils Andreas Svee committed 2026-08-10 01:18:38 +07:00
1 parent a67331a297
commit 4632e310d7
5 files changed
+457 -4

No files matched your search

+2
View File
@@ -116,10 +116,12 @@ impl PendingMap {
self.map.len()
}
#[cfg(any(feature = "tokio", test))]
pub fn next_timeout_deadline(&self) -> Option<Instant> {
self.deadlines.first().map(|key| key.timeout_at)
}
#[cfg(any(feature = "tokio", test))]
pub fn latest_timeout_deadline(&self) -> Option<Instant> {
self.deadlines.last().map(|key| key.timeout_at)
}