madelson / DistributedLock

A .NET library for distributed synchronization
MIT License
1.86k stars 192 forks source link

tests: use testcontainers.postgres for integration tests #211

Closed Meir017 closed 3 months ago

Meir017 commented 4 months ago

same faileures as #208 image

Meir017 commented 4 months ago

now after a couple tests compelete, all of the tests start to fail with the error Unhandled exception. Npgsql.PostgresException (0x80004005): 53300: sorry, too many clients already

Meir017 commented 3 months ago

continued in #212

madelson commented 3 months ago

Do we need to configure Postgres to allow more connections? In the local setup docs for distributedlock believe there’s something about that.

Meir017 commented 3 months ago

@madelson I had some issues modifying the configuration of the docker, so for PostgreSQL there are multiple containers starting and stopping, continued in #212