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

Commit d68608c

Browse files
authored
stake-pool: Re-enable tests, avoid warping so much (#1687)
1 parent c6a9446 commit d68608c

File tree

1 file changed

+2
-11
lines changed

1 file changed

+2
-11
lines changed

stake-pool/program/tests/update_validator_list_balance.rs

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -97,13 +97,8 @@ async fn setup(
9797
}
9898

9999
// Warp forward so the stakes properly activate, and deposit
100-
// TODO This is *bad* -- program-test needs to have some more active stake
101-
// so we can warm up faster than this. Also, we need to do each of these
102-
// warps by hand to get fully active stakes.
103-
for i in 2..50 {
104-
slot = first_normal_slot + i * slots_per_epoch;
105-
context.warp_to_slot(slot).unwrap();
106-
}
100+
slot += 2 * slots_per_epoch;
101+
context.warp_to_slot(slot).unwrap();
107102

108103
stake_pool_accounts
109104
.update_all(
@@ -170,7 +165,6 @@ async fn setup(
170165
}
171166

172167
#[tokio::test]
173-
#[ignore]
174168
async fn success() {
175169
let num_validators = 5;
176170
let (
@@ -239,7 +233,6 @@ async fn success() {
239233
}
240234

241235
#[tokio::test]
242-
#[ignore]
243236
async fn merge_into_reserve() {
244237
let (mut context, stake_pool_accounts, stake_accounts, lamports, _, mut slot) =
245238
setup(MAX_VALIDATORS_TO_UPDATE).await;
@@ -350,7 +343,6 @@ async fn merge_into_reserve() {
350343
}
351344

352345
#[tokio::test]
353-
#[ignore]
354346
async fn merge_into_validator_stake() {
355347
let (mut context, stake_pool_accounts, stake_accounts, lamports, reserve_lamports, mut slot) =
356348
setup(MAX_VALIDATORS_TO_UPDATE).await;
@@ -477,7 +469,6 @@ async fn merge_into_validator_stake() {
477469
}
478470

479471
#[tokio::test]
480-
#[ignore]
481472
async fn merge_transient_stake_after_remove() {
482473
let (mut context, stake_pool_accounts, stake_accounts, lamports, reserve_lamports, mut slot) =
483474
setup(1).await;

0 commit comments

Comments
 (0)