Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions program/tests/helpers/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ use {
find_pool_address, find_pool_mint_address, find_pool_mint_authority_address,
find_pool_mpl_authority_address, find_pool_onramp_address, find_pool_stake_address,
find_pool_stake_authority_address, id, inline_mpl_token_metadata, instruction,
processor::Processor,
},
};

Expand All @@ -43,8 +42,8 @@ pub fn program_test(enable_minimum_delegation: bool) -> ProgramTest {

program_test.add_upgradeable_program_to_genesis("solana_stake_program", &stake_program::id());
program_test.add_program("mpl_token_metadata", inline_mpl_token_metadata::id(), None);
program_test.add_program("spl_single_pool", id(), processor!(Processor::process));
program_test.prefer_bpf(false);
program_test.add_program("spl_single_pool", id(), None);
program_test.prefer_bpf(true);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: prefer_bpf should default to true with https://github.com/anza-xyz/agave/blob/d3691c7bc8994edc4929b40e73ae3ff7d6ff7320/program-test/src/lib.rs#L513, so we shouldn't need this line at all


if !enable_minimum_delegation {
program_test.deactivate_feature(stake_raise_minimum_delegation_to_1_sol::id());
Expand Down