From 01ef2a5c4a8ff0d6b1481596e47b1da479f25a26 Mon Sep 17 00:00:00 2001 From: "Jeff Washington (jwash)" <75863576+jeffwashington@users.noreply.github.com> Date: Tue, 8 Jun 2021 13:54:10 -0600 Subject: [PATCH] test: simple CalculateHashIntermediate refactoring (#17813) --- 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 e6c4bc4e18..07d059e0cf 100644 --- a/runtime/src/accounts_hash.rs +++ b/runtime/src/accounts_hash.rs @@ -2027,18 +2027,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(), ), ]; @@ -2052,18 +2048,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(), )], ];