mirror of
https://github.com/allankoechke/turso.git
synced 2026-11-30 11:12:58 +00:00
The pg backend picked a free port, released it, and passed it to the tursopg server it spawned. Two tests running at the same time could get the same port. The second server then failed to bind, and its test connected to the first test's server and ran against that test's database and session. Start tursopg on port 0 and read the port it actually listens on from the line it prints at startup. tursopg now prints the bound address instead of the requested one. Tests: 32 parallel runs of pg-sqltests/role.sqltest, which failed intermittently before this change