testcontainers-node icon indicating copy to clipboard operation
testcontainers-node copied to clipboard

Configurable retry options for file-lock `testcontainers-node.lock`

Open GiDW opened this issue 1 year ago • 1 comments

Our current setup in which we use testcontainers consist of jest tests that spin up a container.

This works well however, spinning up a container becomes slower depending on the amount of tests that are started in parallel.

I've tracked it down to the file-lock around testcontainers-node.lock. Tweaking the retry options for proper-lockfile can really speed-up our test suite.

I've made a PR to make the retry options configurable by the user. https://github.com/testcontainers/testcontainers-node/pull/886

Would this be something that can be considered adding to testcontainers?

GiDW avatar Jan 06 '25 14:01 GiDW

Implemented by https://github.com/testcontainers/testcontainers-node/pull/890

cristianrgreco avatar Jan 10 '25 21:01 cristianrgreco