From 78f3606e30bd8b14b7ed9ecc712690ae5431ca35 Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Tue, 8 Jun 2021 21:47:40 +0000 Subject: [PATCH] test: simple CalculateHashIntermediate refactoring (#17813) (#17846) (cherry picked from commit 01ef2a5c4a8ff0d6b1481596e47b1da479f25a26) Co-authored-by: Jeff Washington (jwash) <75863576+jeffwashington@users.noreply.github.com> --- runtime/src/accounts_hash.rs | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/runtime/src/accounts_hash.rs b/runtime/src/accounts_hash.rs index c6e73b1b1c..a98fd30598 100644 --- a/runtime/src/accounts_hash.rs +++ b/runtime/src/accounts_hash.rs @@ -1994,18 +1994,14 @@ pub mod tests { let offset = 2; let input = vec![ - CalculateHashIntermediate::new( - 0, + CalculateHashIntermediate::new_without_slot( Hash::new_unique(), u64::MAX - offset, - 0, Pubkey::new_unique(), ), - CalculateHashIntermediate::new( - 0, + CalculateHashIntermediate::new_without_slot( Hash::new_unique(), offset + 1, - 0, Pubkey::new_unique(), ), ]; @@ -2019,18 +2015,14 @@ pub mod tests { let offset = 2; let input = vec![ - vec![CalculateHashIntermediate::new( - 0, + vec![CalculateHashIntermediate::new_without_slot( Hash::new_unique(), u64::MAX - offset, - 0, Pubkey::new_unique(), )], - vec![CalculateHashIntermediate::new( - 0, + vec![CalculateHashIntermediate::new_without_slot( Hash::new_unique(), offset + 1, - 0, Pubkey::new_unique(), )], ];