Skip to content

Make timeouts used in TestKit(Base) class configurable #7259

@b8rni

Description

@b8rni

Unit tests often fail with timeout errors because of parallel execution of independent unit tests regarding the TestKit class. If the system is under heavy load, then it seems that the timeouts are to close...

To reproduce the problem you can try to start a cpu stress test and execute the "Failing_Test" until an Exception will be thrown. Usually it takes less than 10 repetitions until an error will occur (on my dev system):

[Fact]
public async Task Failing_Test() {
var tasks = Enumerable.Range(0, 100).Select(_ => Task.Run(() => new TestKit()));

var actors = await Task.WhenAll(tasks);
foreach (var actor in actors) {
actor.Dispose();
}
}

Possible errors:

  1. image
  2. image

It would be nice if it would be possible to configure the following timeouts:

  1. image
  2. image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions