1
0
mirror of https://github.com/pgbackrest/pgbackrest.git synced 2024-12-14 10:13:05 +02:00
pgbackrest/test
David Steele 7ce0f5a94c Use unique port for each server unit test.
If the same port is reused too quickly bind may fail with this error:

FileOpenError: unable to bind socket: [98] Address already in use

We specify SO_REUSEADDR when creating the socket but apparently this is not always enough if the port is reused very rapidly.

Fix this (hopefully) by using a unique port for each test that needs one. This does in theory limit the number of tests that can use ports, but we allow 768 per test, whereas the test that uses the most ports is common/io-tls with 4.
2023-11-30 16:43:09 -03:00
..
certificate SFTP support for repository storage. 2023-05-13 19:16:16 +03:00
code-count v2.49: Remove PostgreSQL 9.3 Support 2023-11-27 08:55:56 -03:00
data
lib/pgBackRestTest Output coverage report on test failure in CI. 2023-11-29 09:31:57 -03:00
src Use unique port for each server unit test. 2023-11-30 16:43:09 -03:00
.gitignore
ci.pl Build command and configuration reference in C. 2023-10-09 14:03:43 -04:00
container.yaml Remove support for PostgreSQL 9.3. 2023-11-09 12:59:12 -03:00
define.yaml Migrate backupFile() tests in command/backup module. 2023-11-24 17:07:49 -03:00
Dockerfile SFTP support for repository storage. 2023-05-13 19:16:16 +03:00
test.pl Output coverage report on test failure in CI. 2023-11-29 09:31:57 -03:00
uncrustify.cfg
Vagrantfile SFTP support for repository storage. 2023-05-13 19:16:16 +03:00