diff --git a/test/tap/tests/pgsql-copy_from_test-t.cpp b/test/tap/tests/pgsql-copy_from_test-t.cpp index 2db1b0669..72865df83 100644 --- a/test/tap/tests/pgsql-copy_from_test-t.cpp +++ b/test/tap/tests/pgsql-copy_from_test-t.cpp @@ -11,6 +11,7 @@ #include #include "libpq-fe.h" #include "command_line.h" +#include "noise_utils.h" #include "tap.h" #include "utils.h" @@ -897,12 +898,19 @@ void execute_tests(bool with_ssl, bool diff_conn) { } int main(int argc, char** argv) { - - plan(51 * 2); // Total number of tests planned - if (cl.getEnv()) return exit_status(); + spawn_internal_noise(cl, internal_noise_mysql_traffic_v2, {{"num_connections", "100"}, {"reconnect_interval", "100"}, {"avg_delay_ms", "300"}}); + spawn_internal_noise(cl, internal_noise_prometheus_poller); + spawn_internal_noise(cl, internal_noise_rest_prometheus_poller, {{"enable_rest_api", "true"}}); + + if (cl.use_noise) { + plan(51 * 2 + 3); + } else { + plan(51 * 2); + } + execute_tests(true, false); execute_tests(false, false); diff --git a/test/tap/tests/pgsql-copy_to_test-t.cpp b/test/tap/tests/pgsql-copy_to_test-t.cpp index e2518707b..8d313dcac 100644 --- a/test/tap/tests/pgsql-copy_to_test-t.cpp +++ b/test/tap/tests/pgsql-copy_to_test-t.cpp @@ -10,6 +10,7 @@ #include #include "libpq-fe.h" #include "command_line.h" +#include "noise_utils.h" #include "tap.h" #include "utils.h" @@ -490,12 +491,19 @@ void execute_tests(bool with_ssl, bool diff_conn) { } int main(int argc, char** argv) { - - plan(42 * 2); // Total number of tests planned - if (cl.getEnv()) return exit_status(); + spawn_internal_noise(cl, internal_noise_mysql_traffic_v2, {{"num_connections", "100"}, {"reconnect_interval", "100"}, {"avg_delay_ms", "300"}}); + spawn_internal_noise(cl, internal_noise_prometheus_poller); + spawn_internal_noise(cl, internal_noise_rest_prometheus_poller, {{"enable_rest_api", "true"}}); + + if (cl.use_noise) { + plan(42 * 2 + 3); + } else { + plan(42 * 2); + } + execute_tests(true, false); execute_tests(false, false); diff --git a/test/tap/tests/pgsql-notice_test-t.cpp b/test/tap/tests/pgsql-notice_test-t.cpp index b1199880b..1e91c632b 100644 --- a/test/tap/tests/pgsql-notice_test-t.cpp +++ b/test/tap/tests/pgsql-notice_test-t.cpp @@ -10,6 +10,7 @@ #include #include "libpq-fe.h" #include "command_line.h" +#include "noise_utils.h" #include "tap.h" #include "utils.h" @@ -127,12 +128,19 @@ void execute_tests(bool with_ssl, bool diff_conn) { } int main(int argc, char** argv) { - - plan(2 * 2); // Total number of tests planned - if (cl.getEnv()) return exit_status(); + spawn_internal_noise(cl, internal_noise_mysql_traffic_v2, {{"num_connections", "100"}, {"reconnect_interval", "100"}, {"avg_delay_ms", "300"}}); + spawn_internal_noise(cl, internal_noise_prometheus_poller); + spawn_internal_noise(cl, internal_noise_rest_prometheus_poller, {{"enable_rest_api", "true"}}); + + if (cl.use_noise) { + plan(2 * 2 + 3); + } else { + plan(2 * 2); + } + execute_tests(true, false); execute_tests(false, false); diff --git a/test/tap/tests/test_noise_injection-t.cpp b/test/tap/tests/test_noise_injection-t.cpp index 726ad2725..20728ffef 100644 --- a/test/tap/tests/test_noise_injection-t.cpp +++ b/test/tap/tests/test_noise_injection-t.cpp @@ -29,6 +29,7 @@ int main(int argc, char** argv) { spawn_internal_noise(cl, internal_noise_prometheus_poller); spawn_internal_noise(cl, internal_noise_random_stats_poller); spawn_internal_noise(cl, internal_noise_mysql_traffic); + spawn_internal_noise(cl, internal_noise_mysql_traffic_v2, {{"num_connections", "100"}, {"reconnect_interval", "100"}, {"avg_delay_ms", "300"}}); spawn_internal_noise(cl, internal_noise_pgsql_traffic); spawn_internal_noise(cl, internal_noise_pgsql_traffic_v2, {{"num_connections", "100"}, {"reconnect_interval", "100"}, {"avg_delay_ms", "300"}}); spawn_internal_noise(cl, internal_noise_rest_prometheus_poller, {{"enable_rest_api", "true"}, {"port", "6070"}});