Skip to content

Commit

Permalink
Merge pull request #564 from mkroening/sleep-delay
Browse files Browse the repository at this point in the history
fix(demo): increase expected sleep delay for debug builds
  • Loading branch information
mkroening authored Apr 11, 2024
2 parents a6e5413 + aac06e2 commit 8b3c3e8
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(15)
Duration::from_millis(20)
} else {
Duration::from_millis(5)
};
Expand Down

0 comments on commit 8b3c3e8

Please sign in to comment.