Observed
When running the full cargo test --lib under load, test_pki_module fails at:
src/contract/vault/pki.rs:440: assertion failed: (ttl + 10) > expect_ttl
The same test passes in isolation (~5s) and on a clean baseline, so this is order/timing sensitivity, not a product regression.
Repro
- full suite on a busy host: fails
cargo test --lib -- contract::vault::pki alone: passes
Suggested
Make the TTL assertion tolerant of issuance/elapsed-second rounding (compare ranges rather than ttl + 10 > expect_ttl) or freeze the clock in the test.
Context
Observed during MST/2 T03 verification (PR #10). Not caused by that change (vault is untouched).
Observed
When running the full
cargo test --libunder load,test_pki_modulefails at:The same test passes in isolation (~5s) and on a clean baseline, so this is order/timing sensitivity, not a product regression.
Repro
cargo test --lib -- contract::vault::pkialone: passesSuggested
Make the TTL assertion tolerant of issuance/elapsed-second rounding (compare ranges rather than
ttl + 10 > expect_ttl) or freeze the clock in the test.Context
Observed during MST/2 T03 verification (PR #10). Not caused by that change (vault is untouched).