diff --git a/test/tap/tests_with_deps/deprecate_eof_support/eof_fast_forward-t.cpp b/test/tap/tests_with_deps/deprecate_eof_support/eof_fast_forward-t.cpp index 0e7928812..6931f811c 100644 --- a/test/tap/tests_with_deps/deprecate_eof_support/eof_fast_forward-t.cpp +++ b/test/tap/tests_with_deps/deprecate_eof_support/eof_fast_forward-t.cpp @@ -246,6 +246,9 @@ int main(int argc, char** argv) { MYSQL_QUERY(proxy, "/* create_new_connection=1 */ DO 1"); } + // Impose a timeout to avoid race conditions + wait_for_backend_conns(admin, "ConnFree", 50, 1); + // Check there are 'N' backend connections uint32_t cur_free_conns = 0; int get_conns_err = get_cur_backend_conns(admin, "ConnFree", cur_free_conns);