Skip to content

Commit

Permalink
Fixed admin port in TAP tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rahim-kanji committed Oct 29, 2024
1 parent 832d7e8 commit b63f510
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions test/tap/tests/pgsql-query_cache_soft_ttl_pct-t.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
4 changes: 2 additions & 2 deletions test/tap/tests/pgsql-query_cache_test-t.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit b63f510

Please sign in to comment.