hs: wait 360s for HsDir publish; floor cbtmintimeout at 10s
Some checks failed
ci / test (push) Failing after 6m21s
Some checks failed
ci / test (push) Failing after 6m21s
180s fail-closed cut a working descriptor upload while status was still Bootstrapping. Learned CBT can also drop to ~1s and kill HsDir circuits.
This commit is contained in:
parent
d4fb93c27e
commit
7701f61c71
4 changed files with 44 additions and 68 deletions
21
tests/hs.rs
Normal file
21
tests/hs.rs
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
//! HS publish wait and CBT floor — 180s fail-closed cuts a working HsDir upload.
|
||||
|
||||
use std::time::Duration;
|
||||
|
||||
use onionwire::hs;
|
||||
|
||||
#[test]
|
||||
fn publish_wait_covers_hsdir_retries() {
|
||||
assert!(
|
||||
hs::PUBLISH_WAIT >= Duration::from_secs(360),
|
||||
"180s cuts a working HsDir publish while status is still Bootstrapping"
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn cbt_min_timeout_floor_is_at_least_10s() {
|
||||
assert!(
|
||||
hs::CBT_MIN_TIMEOUT_MS >= 10_000,
|
||||
"learned CBT ~1s kills HsDir circuits"
|
||||
);
|
||||
}
|
||||
Loading…
Reference in a new issue