From b86bbaeb367de648c7dc8c3ae0cd012070ccddad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javier=20Jaramago=20Fern=C3=A1ndez?= Date: Tue, 14 May 2024 14:49:27 +0200 Subject: [PATCH] Minor cleanup in some TAP tests - Removed unused dependencies. - Removed commented code. --- .../deprecate_eof_support/deprecate_eof_cache-t.cpp | 3 --- .../deprecate_eof_support/eof_fast_forward-t.cpp | 3 --- 2 files changed, 6 deletions(-) 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 e46e2d3f9..51c68ade7 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 @@ -1,11 +1,8 @@ -#include #include #include #include #include #include -#include -#include #include "mysql.h" #include "mysqld_error.h" 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 3a50ce1d8..82b5cf14d 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 @@ -18,7 +18,6 @@ #include #include "mysql.h" -#include "mysqld_error.h" #include "proxysql_utils.h" @@ -57,7 +56,6 @@ int create_testing_tables(MYSQL* mysql_server) { int perform_workload_on_connection(MYSQL* proxy, MYSQL* admin) { // Change default query rules to avoid replication issues -// MYSQL_QUERY(admin, "UPDATE mysql_query_rules SET destination_hostgroup=0 WHERE rule_id=2"); MYSQL_QUERY(admin, "UPDATE mysql_query_rules SET active=0"); MYSQL_QUERY(admin, "LOAD MYSQL QUERY RULES TO RUNTIME"); @@ -175,7 +173,6 @@ int perform_workload_on_connection(MYSQL* proxy, MYSQL* admin) { ok(ops_err_msg.empty() == true, "Operations should complete successfully - '%s'", ops_err_msg.c_str()); // Recover default query rules -// MYSQL_QUERY(admin, "UPDATE mysql_query_rules SET destination_hostgroup=0 WHERE rule_id=2"); MYSQL_QUERY(admin, "UPDATE mysql_query_rules SET active=1"); MYSQL_QUERY(admin, "LOAD MYSQL QUERY RULES TO RUNTIME");