diff --git a/test/tap/tests/set_testing-240-t.cpp b/test/tap/tests/set_testing-240-t.cpp index b88e23141..5dd893d23 100644 --- a/test/tap/tests/set_testing-240-t.cpp +++ b/test/tap/tests/set_testing-240-t.cpp @@ -114,7 +114,7 @@ void * my_conn_thread(void *arg) { if (mysql==NULL) { exit(EXIT_FAILURE); } - int port = local ? 0 : ( cl.mysql_port + rand()%multiport ); + int port = local ? 0 : ( cl.port + rand()%multiport ); MYSQL *rc=mysql_real_connect(mysql, cl.mysql_host, cl.mysql_username, cl.mysql_password, schema, port, NULL, 0); if (rc==NULL) { if (silent==0) {