mirror of
https://github.com/scylladb/scylladb.git
synced 2026-06-08 16:03:20 +00:00
It may happen that the ports we randomly choose for LDAP are busy, and that'd fail the test suite, so once we randomly select ports, now we'll see if they're busy or not, and if they're busy, we'll select next ones, until we finally have some free ports for LDAP. Tested with: `./test.py ldap/ldap_connection_test --repeat 1000 -j 10`: before the fix, this command fails after ~112 runs, and of course it passes with the fix. Fixes: scylladb/scylla-enterprise#5120 Fixes: scylladb/scylladb#23149 Fixes: scylladb/scylladb#23242 Closes scylladb/scylladb#23275