TestValidator nits (#30410)
* nit: remove erroneous comment * nit: use max for program account lamports
This commit is contained in:
parent
47777c47bf
commit
b0009a3203
|
@ -481,7 +481,6 @@ impl TestValidatorGenesis {
|
|||
}
|
||||
|
||||
/// Add a list of programs to the test environment.
|
||||
///pub fn add_programs_with_path<'a>(&'a mut self, programs: &[ProgramInfo]) -> &'a mut Self {
|
||||
pub fn add_programs_with_path(&mut self, programs: &[ProgramInfo]) -> &mut Self {
|
||||
for program in programs {
|
||||
self.programs.push(program.clone());
|
||||
|
@ -665,7 +664,7 @@ impl TestValidator {
|
|||
accounts.insert(
|
||||
program.program_id,
|
||||
AccountSharedData::from(Account {
|
||||
lamports: Rent::default().minimum_balance(data.len()).min(1),
|
||||
lamports: Rent::default().minimum_balance(data.len()).max(1),
|
||||
data,
|
||||
owner: program.loader,
|
||||
executable: true,
|
||||
|
|
Loading…
Reference in New Issue