Skip to content
This repository was archived by the owner on Mar 11, 2025. It is now read-only.

Commit 30f6056

Browse files
authored
stake-pool: Make transaction signatures unique in withdraw test (#3854)
1 parent 1566564 commit 30f6056

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

stake-pool/program/tests/withdraw.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -678,6 +678,8 @@ async fn fail_with_not_enough_tokens() {
678678
)
679679
.await;
680680

681+
// generate a new authority each time to make each transaction unique
682+
let new_authority = Pubkey::new_unique();
681683
let transaction_error = stake_pool_accounts
682684
.withdraw_stake(
683685
&mut context.banks_client,
@@ -715,6 +717,7 @@ async fn fail_with_not_enough_tokens() {
715717
)
716718
.await;
717719

720+
// generate a new authority each time to make each transaction unique
718721
let new_authority = Pubkey::new_unique();
719722
let transaction_error = stake_pool_accounts
720723
.withdraw_stake(

0 commit comments

Comments
 (0)