Files
turso/postgres
Pekka Enberg 518f86f25b testing/sqltest: connect each test to the tursopg server it started
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
2026-10-05 13:20:56 +03:00
..