Skip to content

Commit

Permalink
Fix build error
Browse files Browse the repository at this point in the history
  • Loading branch information
mohanson committed Feb 28, 2024
1 parent 5323ec0 commit 56af9dd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_resume.rs
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ impl Machine {
#[test]
pub fn test_sc_after_snapshot() {
let mut machine = machine_build::int_v2_imacb("tests/programs/sc_after_snapshot");
machine.machine.set_max_cycles(5);
machine.machine.inner_mut().set_max_cycles(5);
let ret = machine.run();
assert!(ret.is_err());
assert_eq!(ret.unwrap_err(), Error::CyclesExceeded);
Expand All @@ -318,7 +318,7 @@ pub fn test_sc_after_snapshot() {
.build(),
);
resume(&mut machine_new, &snap).unwrap();
machine_new.machine.set_max_cycles(20);
machine_new.machine.inner_mut().set_max_cycles(20);
let ret = machine_new.run();
assert!(ret.is_ok());
assert_eq!(ret.unwrap(), 0);
Expand Down

0 comments on commit 56af9dd

Please sign in to comment.