diff --git a/test/tap/tests/test_query_rules_fast_routing_algorithm-t.cpp b/test/tap/tests/test_query_rules_fast_routing_algorithm-t.cpp index b35d3be7a..817830196 100644 --- a/test/tap/tests/test_query_rules_fast_routing_algorithm-t.cpp +++ b/test/tap/tests/test_query_rules_fast_routing_algorithm-t.cpp @@ -244,6 +244,8 @@ int test_fast_routing_algorithm( if (c_err) { return EXIT_FAILURE; } MYSQL_QUERY_T(admin, "LOAD MYSQL QUERY RULES TO RUNTIME"); + usleep(100*1000); + // Seek end of file for error log errlog.seekg(0, std::ios::end); // Get current last id from debug db @@ -285,6 +287,8 @@ int test_fast_routing_algorithm( MYSQL_QUERY_T(admin, ("SET mysql-query_rules_fast_routing_algorithm=" + std::to_string(new_algo)).c_str()); MYSQL_QUERY_T(admin, "LOAD MYSQL VARIABLES TO RUNTIME"); + usleep(100*1000); + // Seek end of file for error log errlog.seekg(0, std::ios::end); // Get current last id from debug db