diff --git a/crates/ecstore/src/bucket/sealed_credentials.rs b/crates/ecstore/src/bucket/sealed_credentials.rs index 46a0f79fb..97ba858b4 100644 --- a/crates/ecstore/src/bucket/sealed_credentials.rs +++ b/crates/ecstore/src/bucket/sealed_credentials.rs @@ -203,9 +203,8 @@ mod tests { use parking_lot::Mutex; use std::collections::BTreeMap; - fn encode_context(context: &HashMap) -> String { - let ordered = context.iter().collect::>(); - serde_json::to_string(&ordered).expect("context serializes") + fn encode_context(context: &BTreeMap) -> String { + serde_json::to_string(context).expect("context serializes") } /// Stands in for the KMS-backed sealer: records the context it was called