Skip to content

Commit

Permalink
Make assert! debuggable
Browse files Browse the repository at this point in the history
  • Loading branch information
dns2utf8 committed May 26, 2016
1 parent 12a1d65 commit ae03a47
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -495,7 +495,8 @@ mod test {
assert_eq!(rx.iter().take(test_tasks).fold(0, |a, b| a + b), test_tasks);
// `iter().take(test_tasks).fold` may be faster than the last thread finishing itself, so
// values of 0 or 1 are ok.
assert!(pool.active_count() <= 1);
let atomic_active_count = pool.active_count();
assert!(atomic_active_count <= 1, "atomic_active_count: {}", atomic_active_count);
}

#[test]
Expand Down

0 comments on commit ae03a47

Please sign in to comment.