Skip to content

Commit

Permalink
remove asserts
Browse files Browse the repository at this point in the history
  • Loading branch information
conradludgate committed Feb 13, 2024
1 parent de8ab90 commit 78c7225
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions tokio/tests/rt_metrics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -91,17 +91,13 @@ fn active_tasks_count() {
}))
.unwrap();

assert_eq!(0, rt.metrics().active_tasks_count());

let rt = threaded();
let metrics = rt.metrics();
assert_eq!(0, metrics.active_tasks_count());
rt.block_on(rt.spawn(async move {
assert_eq!(1, metrics.active_tasks_count());
}))
.unwrap();

assert_eq!(0, rt.metrics().active_tasks_count());
}

#[test]
Expand Down

0 comments on commit 78c7225

Please sign in to comment.