diff --git a/test-validator/src/lib.rs b/test-validator/src/lib.rs index 9f8c055c8..12d2f12f2 100644 --- a/test-validator/src/lib.rs +++ b/test-validator/src/lib.rs @@ -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,