@@ -63,7 +63,7 @@ func TestPostgresTCP(t *testing.T) {
6363 // Prepare the initial arguments
6464 args := []string {* postgresConnName }
6565 // Add the IP type flag using the helper
66- args = addIPTypeFlag (args )
66+ args = AddIPTypeFlag (args )
6767 // Run the test
6868 proxyConnTest (t , args , "pgx" , postgresDSN ())
6969}
@@ -85,7 +85,7 @@ func TestPostgresUnix(t *testing.T) {
8585 // Prepare the initial arguments
8686 args := []string {"--unix-socket" , tmpDir , * postgresConnName }
8787 // Add the IP type flag using the helper
88- args = addIPTypeFlag (args )
88+ args = AddIPTypeFlag (args )
8989 // Run the test
9090 proxyConnTest (t , args , "pgx" , dsn )
9191}
@@ -113,7 +113,7 @@ func TestPostgresImpersonation(t *testing.T) {
113113 * postgresConnName ,
114114 }
115115 // Add the IP type flag using the helper
116- args = addIPTypeFlag (args )
116+ args = AddIPTypeFlag (args )
117117 // Run the test
118118 proxyConnTest (t , args , "pgx" , postgresDSN ())
119119}
@@ -181,9 +181,7 @@ func TestPostgresAuthentication(t *testing.T) {
181181 }
182182 for _ , tc := range tcs {
183183 t .Run (tc .desc , func (t * testing.T ) {
184- // Add the IP type flag using the helper
185- argsWithIPType := addIPTypeFlag (tc .args )
186- proxyConnTest (t , argsWithIPType , "pgx" , postgresDSN ())
184+ proxyConnTest (t , AddIPTypeFlag (tc .args ), "pgx" , postgresDSN ())
187185 })
188186 }
189187}
@@ -215,9 +213,7 @@ func TestPostgresGcloudAuth(t *testing.T) {
215213 }
216214 for _ , tc := range tcs {
217215 t .Run (tc .desc , func (t * testing.T ) {
218- // Add the IP type flag using the helper
219- argsWithIPType := addIPTypeFlag (tc .args )
220- proxyConnTest (t , argsWithIPType , "pgx" , postgresDSN ())
216+ proxyConnTest (t , AddIPTypeFlag (tc .args ), "pgx" , postgresDSN ())
221217 })
222218 }
223219
@@ -263,9 +259,7 @@ func TestPostgresIAMDBAuthn(t *testing.T) {
263259 }
264260 for _ , tc := range tcs {
265261 t .Run (tc .desc , func (t * testing.T ) {
266- // Add the IP type flag using the helper
267- argsWithIPType := addIPTypeFlag (tc .args )
268- proxyConnTest (t , argsWithIPType , "pgx" , tc .dsn )
262+ proxyConnTest (t , AddIPTypeFlag (tc .args ), "pgx" , tc .dsn )
269263 })
270264 }
271265}
@@ -306,9 +300,7 @@ func TestPostgresCustomerCAS(t *testing.T) {
306300 }
307301 for _ , tc := range tcs {
308302 t .Run (tc .desc , func (t * testing.T ) {
309- // Add the IP type flag using the helper
310- argsWithIPType := addIPTypeFlag (tc .args )
311- proxyConnTest (t , argsWithIPType , "pgx" , tc .dsn )
303+ proxyConnTest (t , AddIPTypeFlag (tc .args ), "pgx" , tc .dsn )
312304 })
313305 }
314306}
0 commit comments