Skip to content

Commit

Permalink
fix tests (#190)
Browse files Browse the repository at this point in the history
  • Loading branch information
segfaultdoc committed Nov 10, 2022
1 parent f2f92ac commit 2075a29
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tip-distributor/src/stake_meta_generator_workflow.rs
Original file line number Diff line number Diff line change
Expand Up @@ -573,12 +573,15 @@ mod tests {
bank.epoch(),
);

let expires_at = bank.epoch() + 3;

let tda_0 = TipDistributionAccount {
validator_vote_account: validator_keypairs_0.vote_keypair.pubkey(),
merkle_root_upload_authority,
merkle_root: None,
epoch_created_at: bank.epoch(),
validator_commission_bps: 50,
expires_at,
bump: tip_distribution_account_0.1,
};
let tda_1 = TipDistributionAccount {
Expand All @@ -587,6 +590,7 @@ mod tests {
merkle_root: None,
epoch_created_at: bank.epoch(),
validator_commission_bps: 500,
expires_at: 0,
bump: tip_distribution_account_1.1,
};
let tda_2 = TipDistributionAccount {
Expand All @@ -595,6 +599,7 @@ mod tests {
merkle_root: None,
epoch_created_at: bank.epoch(),
validator_commission_bps: 75,
expires_at: 0,
bump: tip_distribution_account_2.1,
};

Expand Down

0 comments on commit 2075a29

Please sign in to comment.