diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2022-03-08 23:42:21 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-08 23:42:21 +0100 |
commit | 32ef9bfa47f8e8f838c02ddda376bea134b140eb (patch) | |
tree | 3d42a65f318d8e19eafad038b777632fbb800dfc | |
parent | 61fbecfd5baaa8038a6e9c49ad50d00ce54ab186 (diff) |
refactor(test): don't spawn additional thread (#13877)
-rw-r--r-- | cli/tools/test.rs | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/cli/tools/test.rs b/cli/tools/test.rs index 20d61098b..b6e9e3d70 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) }) }); |