diff --git a/test/tap/tests/pgsql-query_cache_soft_ttl_pct-t.cpp b/test/tap/tests/pgsql-query_cache_soft_ttl_pct-t.cpp index f093287ca..df37c473e 100644 --- a/test/tap/tests/pgsql-query_cache_soft_ttl_pct-t.cpp +++ b/test/tap/tests/pgsql-query_cache_soft_ttl_pct-t.cpp @@ -50,8 +50,8 @@ enum ConnType { PGconn* createNewConnection(ConnType conn_type, bool with_ssl) { std::stringstream ss; - const char* host = (conn_type == BACKEND) ? cl.pgsql_host : cl.admin_host; - int port = (conn_type == BACKEND) ? cl.pgsql_port : cl.admin_port; + const char* host = (conn_type == BACKEND) ? cl.pgsql_host : cl.pgsql_admin_port; + int port = (conn_type == BACKEND) ? cl.pgsql_port : cl.pgsql_admin_port; const char* username = (conn_type == BACKEND) ? cl.pgsql_username : cl.admin_username; const char* password = (conn_type == BACKEND) ? cl.pgsql_password : cl.admin_password; diff --git a/test/tap/tests/pgsql-query_cache_test-t.cpp b/test/tap/tests/pgsql-query_cache_test-t.cpp index cffc84aad..d9ef758cd 100644 --- a/test/tap/tests/pgsql-query_cache_test-t.cpp +++ b/test/tap/tests/pgsql-query_cache_test-t.cpp @@ -70,8 +70,8 @@ enum ConnType { PGConnPtr createNewConnection(ConnType conn_type, bool with_ssl) { std::stringstream ss; - const char* host = (conn_type == BACKEND) ? cl.pgsql_host : cl.admin_host; - int port = (conn_type == BACKEND) ? cl.pgsql_port : cl.admin_port; + const char* host = (conn_type == BACKEND) ? cl.pgsql_host : cl.pgsql_admin_host; + int port = (conn_type == BACKEND) ? cl.pgsql_port : cl.pgsql_admin_port; const char* username = (conn_type == BACKEND) ? cl.pgsql_username : cl.admin_username; const char* password = (conn_type == BACKEND) ? cl.pgsql_password : cl.admin_password;