[#serial] not respected with tokio::test?
Is it possible that [#serial] is not respected when using Tokio? I have a test definition as below (many in fact, which should be run one at-a-time). Each test is resource intensive and should be run in serial. But, all tests are run simultaneously - machine runs out of memory and kills the process. When running each test individually via command-line, everything stays in limits and all tests pass.
OS: ubuntu 20.04
```
#[tokio::test(flavor = "multi_thread")]
#[serial(slt)]
async fn some_test_of_mine() -> CliResult<()> {
...
}
#[tokio::test(flavor = "multi_thread")]
#[serial(slt)]
async fn another_test_of_mine() -> CliResult<()> {
...
}
...
```
关闭于 2024-11-04 1 条评论