Skip to content

[windows] lots of tests running in parallel may cause "leaky" warnings #1469

@zaneduffield

Description

@zaneduffield

When I run my tests with datatest-stable (0.2.9), using nextest as the runner, a semi-random number of tests are marked as leaky.

This seems to only depend on how many tests the crate has, and not what the tests are doing.

I have an example repo here: https://github.com/zaneduffield/datatest_leak_issue
That repo has 1000 test files, which are used with a no-op test function.
When I run cargo nextest run on it, about 40% of the tests are marked as 'leaky'.
One issue that may be related is how slow this is: ~17s on my machine compared to ~0.2s with cargo test.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions