From bccb713d98de225aa3f882bae8c05991ed13a212 Mon Sep 17 00:00:00 2001 From: Carl Lerche Date: Sat, 26 Oct 2019 22:15:39 -0700 Subject: [PATCH] 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. --- tokio-executor/src/thread_pool/tests/loom_pool.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tokio-executor/src/thread_pool/tests/loom_pool.rs b/tokio-executor/src/thread_pool/tests/loom_pool.rs index 6256048b2..9d3cd64fc 100644 --- a/tokio-executor/src/thread_pool/tests/loom_pool.rs +++ b/tokio-executor/src/thread_pool/tests/loom_pool.rs @@ -86,6 +86,10 @@ fn pool_shutdown() { gated2(true).await; }); + pool.spawn(async move { + gated2(false).await; + }); + drop(pool); }); }