Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: Avoid freeport() collisions in io tests
It's very unlikely, but it can (and did) happen that both the server and admin ports have the same number returned from freeport(). This then leads to a situation where PostgREST will accept the same port in both cases, because the host "localhost" will allow binding to ipv4 or ipv6 respectively. This will make the IO tests fail. This change makes sure that the admin port will never be the same as the server port and thus avoids this problem.
- Loading branch information