diff --git a/test/tap/tests_with_deps/deprecate_eof_support/deprecate_eof_cache-t.cpp b/test/tap/tests_with_deps/deprecate_eof_support/deprecate_eof_cache-t.cpp index 503e256a1..7e9a1a9b4 100644 --- a/test/tap/tests_with_deps/deprecate_eof_support/deprecate_eof_cache-t.cpp +++ b/test/tap/tests_with_deps/deprecate_eof_support/deprecate_eof_cache-t.cpp @@ -117,15 +117,8 @@ int main(int argc, char** argv) { } } - // Delete previous mysql_query_rules matching target digest - MYSQL_QUERY( - proxy_admin, - "DELETE FROM mysql_query_rules WHERE " - "match_digest='SELECT \\* FROM test\\.ok_packet_cache_test WHERE id=?'" - ); - - // Disable current ^SELECT query rule - MYSQL_QUERY(proxy_admin, "UPDATE mysql_query_rules SET active=0 WHERE rule_id=2"); + // Delete previous mysql_query_rules + MYSQL_QUERY(proxy_admin, "DELETE FROM mysql_query_rules"); // Add a new query rule with caching TTL for targgeting the cache std::string query_digest { "SELECT \\* FROM test\\.ok_packet_cache_test WHERE id=?" }; @@ -303,17 +296,6 @@ int main(int argc, char** argv) { ); } - // Delete new query cache rule - MYSQL_QUERY( - proxy_admin, - "DELETE FROM mysql_query_rules WHERE " - "match_digest='SELECT \\* FROM test\\.ok_packet_cache_test WHERE id=?'" - ); - - // Enable old ^SELECT query rule - MYSQL_QUERY(proxy_admin, "UPDATE mysql_query_rules SET active=1 WHERE rule_id=2"); - MYSQL_QUERY(proxy_admin, "LOAD MYSQL QUERY RULES TO RUNTIME"); - mysql_close(proxy_admin); mysql_close(proxy_mysql);