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

Commit 5088633

Browse files
authored
stake-pool: Fix test for monorepo downstream job (#5514)
1 parent d68329c commit 5088633

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

stake-pool/program/tests/force_destake.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,12 @@ async fn setup(
4141
let (mut stake_pool, mut validator_list) = stake_pool_accounts.state();
4242

4343
let _ = add_vote_account_with_pubkey(voter_pubkey, &mut program_test);
44+
let mut data = vec![0; std::mem::size_of::<StakeState>()];
45+
bincode::serialize_into(&mut data[..], forced_stake).unwrap();
4446

4547
let stake_account = Account::create(
4648
TEST_STAKE_AMOUNT + STAKE_ACCOUNT_RENT_EXEMPTION,
47-
bincode::serialize::<StakeState>(forced_stake).unwrap(),
49+
data,
4850
stake::program::id(),
4951
false,
5052
Epoch::default(),
@@ -233,7 +235,6 @@ async fn fail_increase() {
233235
}
234236

235237
#[tokio::test]
236-
#[ignore]
237238
async fn success_remove_validator() {
238239
let stake_pool_accounts = StakePoolAccounts::default();
239240
let meta = Meta {

0 commit comments

Comments
 (0)