Skip to content

Test classes created and initialized regardless of parallelism level #2144

Answered by Vampire
roded asked this question in Q&A
Discussion options

You must be logged in to vote

Another idea how to maybe approach your original problem.
Indeed build such a resource pool.
Have a Semaphore with parallelism amount of permits.
acquire it before you create the driver, release it after you closed the driver.
This way max 5 drivers are used as the others are waiting for the semaphore to have a permit available.
This might be the best solution in your case.

Replies: 1 comment 19 replies

Comment options

You must be logged in to vote
19 replies
@Vampire
Comment options

Vampire Apr 14, 2025
Collaborator

@roded
Comment options

@Vampire
Comment options

Vampire Apr 14, 2025
Collaborator

@Vampire
Comment options

Vampire Apr 15, 2025
Collaborator

Answer selected by roded
@roded
Comment options

@Vampire
Comment options

Vampire Apr 16, 2025
Collaborator

@Vampire
Comment options

Vampire Apr 16, 2025
Collaborator

@roded
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants