From 0dd2db1b02ffc1845b99100b9d5636db8a2f98e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javier=20Jaramago=20Fern=C3=A1ndez?= Date: Tue, 2 Mar 2021 13:01:39 +0000 Subject: [PATCH] Added new iterations to 'test_ps_async-t' fetching just one and two rows --- test/tap/tests/test_ps_async-t.cpp | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/test/tap/tests/test_ps_async-t.cpp b/test/tap/tests/test_ps_async-t.cpp index d00a2bd07..649c58bd2 100644 --- a/test/tap/tests/test_ps_async-t.cpp +++ b/test/tap/tests/test_ps_async-t.cpp @@ -160,8 +160,8 @@ static int wait_for_mysql(MYSQL *mysql, int status) { const int NUM_ROWS=100; -const int NUM_ROWS_READ=1000; -const int NLOOPS=1; +const std::vector NUM_ROWS_READ { 1000, 1, 2 }; +const int NLOOPS = NUM_ROWS_READ.size(); int select_config_file(MYSQL* mysql, std::string& resultset) { if (mysql_query(mysql, "select config file")) { @@ -201,7 +201,7 @@ int main(int argc, char** argv) { if(cl.getEnv()) return exit_status(); - plan(2*NLOOPS); + plan(1 + NLOOPS); diag("Testing PS async store result"); MYSQL* mysqladmin = mysql_init(NULL); @@ -287,6 +287,9 @@ int main(int argc, char** argv) { std::string query = ""; for (int loops=0; loops