mirror of
https://github.com/storytold/craft-libs.git
synced 2026-11-18 08:23:03 +00:00
cms: the forged-hash test builds its cache through HashCache
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user