Increase sleeps for TAP tests reconfiguring ProxySQL interfaces

Sleeps have been increased for tests 'test_clickhouse_server-t' and
'test_sqlite3_server-t' in order to prevent potentials 'EADDRINUSE',
that could lead to client stalls when connecting to the interfaces.
pull/4046/head
Javier Jaramago Fernández 3 years ago
parent 0e39503f6e
commit be9088b25f

@ -497,7 +497,8 @@ int main(int argc, char** argv) {
// NOTE: Wait for ProxySQL to reconfigure, changing Clickhous interface.
// Trying to perform a connection immediately after changing the
// interface could lead to 'EADDRINUSE' in ProxySQL side.
sleep(1);
// UPDATE: Timeout increased to '5' seconds to avoid previously described issue.
sleep(5);
// Connect to the new interface
std::pair<std::string, int> new_host_port {};

@ -348,7 +348,8 @@ int main(int argc, char** argv) {
// NOTE: Wait for ProxySQL to reconfigure, changing SQLite3 interface.
// Trying to perform a connection immediately after changing the
// interface could lead to 'EADDRINUSE' in ProxySQL side.
sleep(1);
// UPDATE: Timeout increased to '5' seconds to avoid previously described issue.
sleep(5);
// Connect to the new interface
std::pair<std::string, int> new_host_port {};

Loading…
Cancel
Save