Merge branch 'test' into 'main'

tor-basic-utils: Add RetryDelay::reset test

See merge request tpo/core/arti!467
This commit is contained in:
Ian Jackson 2022-04-25 09:25:23 +00:00
commit 96fdaa7934
1 changed files with 2 additions and 0 deletions

View File

@ -143,6 +143,8 @@ mod test {
assert_eq!(rd.delay_bounds(), (1000, 4500));
rd.last_delay_ms = 3_000_000_000;
assert_eq!(rd.delay_bounds(), (1000, std::u32::MAX));
rd.reset();
assert_eq!(rd.delay_bounds(), (1000, 1001));
}
#[test]