Skip to content

Commit

Permalink
Fixed test_cross_tick in invariant-type module
Browse files Browse the repository at this point in the history
  • Loading branch information
wojciech-cichocki committed Apr 3, 2024
1 parent 33af9ed commit 0846a15
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions programs/invariant/invariant-types/src/math.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1818,7 +1818,7 @@ mod tests {
let ref_tick = RefCell::new(tick);
let mut refmut_tick = ref_tick.borrow_mut();

cross_tick(&mut refmut_tick, &mut pool).ok();
cross_tick(&mut refmut_tick, &mut pool).unwrap();

assert_eq!(*refmut_tick, result_tick);
assert_eq!(pool, result_pool);
Expand Down Expand Up @@ -1855,7 +1855,7 @@ mod tests {

let ref_tick = RefCell::new(tick);
let mut refmut_tick = ref_tick.borrow_mut();
cross_tick(&mut refmut_tick, &mut pool).ok();
cross_tick(&mut refmut_tick, &mut pool).unwrap();
assert_eq!(*refmut_tick, result_tick);
assert_eq!(pool, result_pool);
}
Expand Down Expand Up @@ -1892,7 +1892,7 @@ mod tests {

let fef_tick = RefCell::new(tick);
let mut refmut_tick = fef_tick.borrow_mut();
cross_tick(&mut refmut_tick, &mut pool).ok();
cross_tick(&mut refmut_tick, &mut pool).unwrap();
assert_eq!(*refmut_tick, result_tick);
assert_eq!(pool, result_pool);
}
Expand Down Expand Up @@ -1929,7 +1929,7 @@ mod tests {

let fef_tick = RefCell::new(tick);
let mut refmut_tick = fef_tick.borrow_mut();
cross_tick(&mut refmut_tick, &mut pool).ok();
cross_tick(&mut refmut_tick, &mut pool).unwrap();
assert_eq!(*refmut_tick, result_tick);
assert_eq!(pool, result_pool);
}
Expand Down

0 comments on commit 0846a15

Please sign in to comment.