From 32ef9bfa47f8e8f838c02ddda376bea134b140eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Tue, 8 Mar 2022 23:42:21 +0100 Subject: [PATCH] refactor(test): don't spawn additional thread (#13877) --- cli/tools/test.rs | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/cli/tools/test.rs b/cli/tools/test.rs index 20d61098be..b6e9e3d70c 100644 --- a/cli/tools/test.rs +++ b/cli/tools/test.rs @@ -813,14 +813,10 @@ async fn test_specifiers( let options = options.clone(); tokio::task::spawn_blocking(move || { - let join_handle = std::thread::spawn(move || { - let future = - test_specifier(ps, permissions, specifier, mode, sender, options); + let future = + test_specifier(ps, permissions, specifier, mode, sender, options); - run_basic(future) - }); - - join_handle.join().unwrap() + run_basic(future) }) });