Skip to content

Commit

Permalink
Make assert! debuggable
Browse files Browse the repository at this point in the history
  • Loading branch information
dns2utf8 committed Aug 20, 2016
1 parent ca05826 commit d93de4e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -547,7 +547,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 d93de4e

Please sign in to comment.