Skip to content

Commit

Permalink
fix(demo): allow even slower sleep on debug
Browse files Browse the repository at this point in the history
  • Loading branch information
mkroening committed Nov 27, 2024
1 parent 41128d4 commit 6e80845
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/demo/src/thread.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ pub fn sleep() {
eprintln!("Measured time for {duration:?} sleep: {elapsed:?}");
assert!(elapsed >= duration);
let expected_delay = if cfg!(debug_assertions) {
Duration::from_millis(100)
Duration::from_secs(1)
} else {
Duration::from_millis(5)
};
Expand Down

0 comments on commit 6e80845

Please sign in to comment.