Skip to content
This repository has been archived by the owner on Jan 13, 2025. It is now read-only.

Commit

Permalink
fix test compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
pgarg66 committed Mar 22, 2023
1 parent 7c30314 commit 13146c1
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 @@ -404,7 +404,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 13146c1

Please sign in to comment.