|
Greetings, Has anyone else run into this: Pipeline agents generally have few CPU cores, and combined with high concurrency this sometimes causes tests to run for more than 30 seconds and thus time out. For me, this reared its head as soon as I started passing cancellation tokens. It seems to occur particularly with async integration tests. That makes sense - these actually benefit from concurrency rather than just from parallelism. If the cores are too busy handling various pending requests, some may run for longer. I've worked around the issue with a 120s timeout, but the 30s default seems perfectly reasonable to me. Any ideas for a more robust solution? |
Replies: 1 comment 4 replies
|
You can use the CLI flag |
You can use the CLI flag
--maximum-parallel-tests #or you can use a[ParallelLimiter<T>]attribute in the code and apply it to your assembly.