From b63f5100a4b2d33d822879720297598fa206319d Mon Sep 17 00:00:00 2001 From: Rahim Kanji Date: Tue, 29 Oct 2024 12:26:00 +0500 Subject: [PATCH] Fixed admin port in TAP tests --- test/tap/tests/pgsql-query_cache_soft_ttl_pct-t.cpp | 4 ++-- test/tap/tests/pgsql-query_cache_test-t.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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;