ResourceLock Pool #4486
-
Hi, Is it possible to implement a pool of resources for the tests to use without explicitly specifying which test should use which resource? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
There's no built-in mechanism for this. Since parallel execution uses a |
Beta Was this translation helpful? Give feedback.
There's no built-in mechanism for this. Since parallel execution uses a
ForkJoinPool
, I'd try usingForkJoinPool.managedBlock(ManagedBlocker)
to acquire a resource from your pool which should at least ensure that the potentially blocked thread is compensated for.