tokio-macros 1.4.0 blocks usage of tokio::task::block_in_place even in multi_thread flavored tests #4140
Labels
A-tokio
Area: The main tokio crate
A-tokio-macros
Area: The tokio-macros crate
C-bug
Category: This is a bug.
I-crash
Problems and improvements related to program crashes/panics.
Version
Platform
Reproduced on both macOS (11.15.2) and Linux:
Description
Under 1.3.0 and prior versions of
tokio-macros
the tests execute correctly. WIth 1.4.0 the following result occurs:Even though this is explicitly within a "multi_thread" runtime.
This is caused by any use of
tokio::task::block_in_place()
.Example test that fails:
This executes correctly in 1.3.0, but fails in 1.4.0. There should be multiple threads available as per the test definition, but this does not appear to be the case.
The text was updated successfully, but these errors were encountered: