@@ -46,7 +46,6 @@ fn test_initialize(variant: InitializeVariant) {
4646 InitializeVariant :: InitializeChecked => Lockup :: default ( ) ,
4747 } ;
4848
49- // Create an uninitialized stake account
5049 let ( stake, stake_account) = ctx. stake_account ( StakeLifecycle :: Uninitialized ) . build ( ) ;
5150
5251 // Process the Initialize instruction, including testing missing signers
@@ -130,7 +129,7 @@ fn test_initialize_insufficient_funds(variant: InitializeVariant) {
130129 InitializeVariant :: InitializeChecked => Lockup :: default ( ) ,
131130 } ;
132131
133- // Create account with insufficient lamports (need to manually create since builder adds rent automatically)
132+ // Create account with insufficient lamports (manually since builder adds rent automatically)
134133 let stake = Pubkey :: new_unique ( ) ;
135134 let stake_account = AccountSharedData :: new_data_with_space (
136135 ctx. rent_exempt_reserve / 2 , // Not enough lamports
@@ -163,8 +162,6 @@ fn test_initialize_insufficient_funds(variant: InitializeVariant) {
163162fn test_initialize_incorrect_size_larger ( variant : InitializeVariant ) {
164163 let ctx = StakeTestContext :: new ( ) ;
165164
166- // Original program_test.rs uses double rent instead of just
167- // increasing the size by 1. This behavior remains (makes no difference here).
168165 let rent_exempt_reserve = Rent :: default ( ) . minimum_balance ( StakeStateV2 :: size_of ( ) * 2 ) ;
169166
170167 let custodian = Pubkey :: new_unique ( ) ;
@@ -214,8 +211,6 @@ fn test_initialize_incorrect_size_larger(variant: InitializeVariant) {
214211fn test_initialize_incorrect_size_smaller ( variant : InitializeVariant ) {
215212 let ctx = StakeTestContext :: new ( ) ;
216213
217- // Original program_test.rs uses rent for size instead of
218- // rent for size - 1. This behavior remains (makes no difference here).
219214 let rent_exempt_reserve = Rent :: default ( ) . minimum_balance ( StakeStateV2 :: size_of ( ) ) ;
220215
221216 let custodian = Pubkey :: new_unique ( ) ;
0 commit comments