test: simple CalculateHashIntermediate refactoring (#17813)

This commit is contained in:
Jeff Washington (jwash) 2021-06-08 13:54:10 -06:00 committed by GitHub
parent 7ee5b02bc5
commit 01ef2a5c4a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 12 deletions

View File

@ -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(),
)],
];