redis/tests/helpers
Oran Agra a331978583
Fix external test hang in redis-cli test when run in a certain order (#13423)
When the tests are run against an external server in this order:
`--single unit/introspection --single unit/moduleapi/blockonbackground
--single integration/redis-cli`
the test would hang when the "ASK redirect test" test attempts to create
a listening socket (it fails, and then redis-cli itself hangs waiting
for a non-responsive socket created by the introspection test).

the reasons are:
1. the blockedbackground test includes util.tcl and resets the
`::last_port_attempted` variable
2. the test in introspection didn't close the listening server, so it's
still alive.
3. find_available_port doesn't properly detect the busy port, and it
thinks that the port is free even though it's busy.

fixing all 3 of these problems, even though fixing just one would be
enough to let the test pass.
2024-07-17 15:42:28 +03:00
..
bg_block_op.tcl stabilize tests that involved with load handlers (#8967) 2021-05-20 15:29:43 +03:00
bg_complex_data.tcl stabilize tests that involved with load handlers (#8967) 2021-05-20 15:29:43 +03:00
fake_redis_node.tcl Fix external test hang in redis-cli test when run in a certain order (#13423) 2024-07-17 15:42:28 +03:00
gen_write_load.tcl stabilize tests that involved with load handlers (#8967) 2021-05-20 15:29:43 +03:00