diff --git a/crates/sui-core/src/overload_monitor.rs b/crates/sui-core/src/overload_monitor.rs index 5d046f9a7e431..43c12528605a6 100644 --- a/crates/sui-core/src/overload_monitor.rs +++ b/crates/sui-core/src/overload_monitor.rs @@ -737,9 +737,13 @@ mod tests { } } - // Give it a 2% fluctuation. - assert!(rejection_percentage as f32 / 100.0 - 0.02 < reject_count as f32 / 10000.0); - assert!(reject_count as f32 / 10000.0 < rejection_percentage as f32 / 100.0 + 0.02); + debug!( + "Rejection percentage: {:?}, reject count: {:?}.", + rejection_percentage, reject_count + ); + // Give it a 3% fluctuation. + assert!(rejection_percentage as f32 / 100.0 - 0.03 < reject_count as f32 / 10000.0); + assert!(reject_count as f32 / 10000.0 < rejection_percentage as f32 / 100.0 + 0.03); } }