Skip to content
This repository has been archived by the owner on Jan 22, 2025. It is now read-only.

Commit

Permalink
Fixup tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Tyera Eulberg committed Jan 12, 2024
1 parent 16f9f79 commit 5ee7283
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cli-output/src/display.rs
Original file line number Diff line number Diff line change
Expand Up @@ -812,6 +812,7 @@ mod test {
post_balance: 9_900,
reward_type: Some(RewardType::Rent),
commission: None,
num_partitions: None,
}]),
loaded_addresses: LoadedAddresses::default(),
return_data: Some(TransactionReturnData {
Expand Down Expand Up @@ -891,6 +892,7 @@ Rewards:
post_balance: 14_900,
reward_type: Some(RewardType::Rent),
commission: None,
num_partitions: None,
}]),
loaded_addresses,
return_data: Some(TransactionReturnData {
Expand Down
1 change: 1 addition & 0 deletions ledger/benches/protobuf.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ fn create_rewards() -> Rewards {
post_balance: std::u64::MAX,
reward_type: Some(RewardType::Fee),
commission: None,
num_partitions: None,
})
.collect()
}
Expand Down
2 changes: 2 additions & 0 deletions ledger/src/blockstore.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10138,6 +10138,7 @@ pub mod tests {
post_balance: std::u64::MAX,
reward_type: Some(RewardType::Fee),
commission: None,
num_partitions: None,
})
.collect();
let protobuf_rewards: generated::Rewards = rewards.into();
Expand Down Expand Up @@ -10211,6 +10212,7 @@ pub mod tests {
post_balance: 42,
reward_type: Some(RewardType::Rent),
commission: None,
num_partitions: None,
}]),
loaded_addresses: LoadedAddresses::default(),
return_data: Some(TransactionReturnData {
Expand Down
1 change: 1 addition & 0 deletions storage-proto/src/convert.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1233,6 +1233,7 @@ mod test {
post_balance: 321,
reward_type: None,
commission: None,
num_partitions: None,
};
let gen_reward: generated::Reward = reward.clone().into();
assert_eq!(reward, gen_reward.into());
Expand Down

0 comments on commit 5ee7283

Please sign in to comment.