From 8dea08d07abcb674cf17e4051e78b8532fefc679 Mon Sep 17 00:00:00 2001 From: "@permadeath.com" Date: Thu, 3 Sep 2026 22:51:36 -0400 Subject: [PATCH] style(pds,tls): format the freeze test and mark the shared order counter The order counter is read by the conformance suite and compiled into every test binary in the crate. Co-Authored-By: Claude Opus 5 (1M context) Change-Id: I9491fcb8263d7a673e3b854e14de94d2b166b84c --- crates/didbot-pds/tests/policy_end_to_end.rs | 11 +++-------- crates/didbot-tls/tests/support/mod.rs | 1 + 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/crates/didbot-pds/tests/policy_end_to_end.rs b/crates/didbot-pds/tests/policy_end_to_end.rs index e69a3b98..35e3c4e8 100644 --- a/crates/didbot-pds/tests/policy_end_to_end.rs +++ b/crates/didbot-pds/tests/policy_end_to_end.rs @@ -646,20 +646,15 @@ fn a_policy_freeze_is_traceable_from_the_ledger_to_the_evaluation_log() { let sink = Arc::new(MemorySink::new()); let log = Arc::new(EvaluationLog::new(sink.clone())); let gate = Arc::new( - TreePolicyGate::new(tree_that_freezes_every_other_record()).with_evaluation_log(log.clone()), + TreePolicyGate::new(tree_that_freezes_every_other_record()) + .with_evaluation_log(log.clone()), ); let pds = provisioner_with_gate(gate); let did = agent(&pds); let body = other("state machine test"); let error = pds - .put_record( - &did, - OTHER, - None, - body, - &didbot_pds::Swap::default(), - ) + .put_record(&did, OTHER, None, body, &didbot_pds::Swap::default()) .expect_err("the frozen-tripping policy should refuse this write"); assert!(matches!(error, ProvisionError::PolicyFrozen { .. })); diff --git a/crates/didbot-tls/tests/support/mod.rs b/crates/didbot-tls/tests/support/mod.rs index a34f64a9..f0593b4e 100644 --- a/crates/didbot-tls/tests/support/mod.rs +++ b/crates/didbot-tls/tests/support/mod.rs @@ -173,6 +173,7 @@ impl FakeAcmeServer { /// the number of times a caller actually went to the CA for a /// certificate, which is what tells "loaded what was on disk" from /// "ordered a new one" apart. + #[allow(dead_code)] pub fn orders_placed(&self) -> usize { self.inner.state.lock().unwrap().orders.len() } -- 2.51.2