Skip to content

Commit

Permalink
Add a test to ensure tasks are balanced across workers
Browse files Browse the repository at this point in the history
  • Loading branch information
AzureMarker committed Dec 21, 2021
1 parent 44ab28e commit 8e2aed5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tokio-util/tests/spawn_pinned.rs
Expand Up @@ -180,7 +180,7 @@ async fn tasks_are_balanced() {
let thread_id1 = join_handle1.await.unwrap();
let thread_id2 = join_handle2.await.unwrap();

println!("{:?} {:?}", thread_id1, thread_id2);

// Since the first task was active when the second task spawned, they should
// be on separate workers/threads.
assert_ne!(thread_id1, thread_id2);
}

0 comments on commit 8e2aed5

Please sign in to comment.