Skip to content

Commit

Permalink
fix test compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
pgarg66 committed Mar 24, 2023
1 parent bf4ed54 commit 6dfacf8
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion program-runtime/src/loaded_programs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,13 @@ mod tests {
}

fn set_tombstone(cache: &mut LoadedPrograms, key: Pubkey, slot: Slot) -> Arc<LoadedProgram> {
cache.assign_program(key, Arc::new(LoadedProgram::new_tombstone(slot)))
cache.assign_program(
key,
Arc::new(LoadedProgram::new_tombstone(
slot,
InvalidProgramReason::FailedToCompile,
)),
)
}

#[test]
Expand Down

0 comments on commit 6dfacf8

Please sign in to comment.