cms: the forged-hash test builds its cache through HashCache

This commit is contained in:
aiongg
2026-11-17 19:07:07 +00:00
parent 5a97096948
commit e67deae9a4
+1 -1
View File
@@ -595,7 +595,7 @@ mod tests {
/// `p` with the content hash of `other`: the hash is a fixed-key 64-bit SipHash, so a
/// crafted profile can have another's (#8613). Setting it stands in for finding one.
fn with_hash_of(p: &Profile, other: &Profile) -> Profile {
let p = Profile { hash: std::sync::OnceLock::from(other.content_hash()), ..p.clone() };
let p = Profile { hash: HashCache(std::sync::OnceLock::from(other.content_hash())), ..p.clone() };
assert_eq!(p.content_hash(), other.content_hash());
p
}