thread-pool: test additional shutdown cases (#1697)

This adds an extra spawned task during the thread-pool shutdown loom
test. This results in additional cases being tested, primarily tasks
being stolen.
This commit is contained in:
Carl Lerche
2019-10-26 22:15:39 -07:00
committed by GitHub
parent 474befd23c
commit bccb713d98
@@ -86,6 +86,10 @@ fn pool_shutdown() {
gated2(true).await;
});
pool.spawn(async move {
gated2(false).await;
});
drop(pool);
});
}