Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parallel test suite execution causes tests to fail #222

Open
enter-github-username opened this issue Feb 19, 2023 · 0 comments
Open

Parallel test suite execution causes tests to fail #222

enter-github-username opened this issue Feb 19, 2023 · 0 comments

Comments

@enter-github-username
Copy link

Running the test suite in parallel via the -j<number of tests to run in parallel> flag of make currently leads to test failures. This is likely caused by some tests trying to bind to the same port. If two such tests (e.g. tests/suffix and tests/prefix, both of which bind to port 5555) are executed at the same time, at least one of the tests will fail.

You may be able to reproduce this issue by running the test suite with make -j16 check. If a test is affected, the log files will contain entries like:

Address already in use [98] (tests/suffix.c:58)

A possible solution may be to use a different port to bind to for each test.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant