Skip to content

Commit 149e1ee

Browse files
committed
chore: update ipType to *ipType
1 parent 3b49f48 commit 149e1ee

4 files changed

Lines changed: 7 additions & 7 deletions

File tree

tests/connection_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ func removeAuthEnvVar(t *testing.T) (*oauth2.Token, string, func()) {
4343
if err != nil {
4444
t.Errorf("failed to get token: %v", err)
4545
}
46-
if ipType != "public" {
46+
if *ipType != "public" {
4747
return tok, "", func() {}
4848
}
4949
path, ok := os.LookupEnv("GOOGLE_APPLICATION_CREDENTIALS")

tests/mysql_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ func TestMySQLAuthentication(t *testing.T) {
141141
requireMySQLVars(t)
142142

143143
var creds string
144-
if ipType == "public" {
144+
if *ipType == "public" {
145145
creds = keyfile(t)
146146
}
147147
tok, path, cleanup := removeAuthEnvVar(t)
@@ -163,7 +163,7 @@ func TestMySQLAuthentication(t *testing.T) {
163163
*mysqlConnName},
164164
},
165165
}
166-
if ipType == "public" {
166+
if *ipType == "public" {
167167
tcs = append(tcs,
168168
struct {
169169
desc string

tests/postgres_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ func TestPostgresAuthentication(t *testing.T) {
125125
requirePostgresVars(t)
126126

127127
var creds string
128-
if ipType == "public" {
128+
if *ipType == "public" {
129129
creds = keyfile(t)
130130
}
131131
tok, path, cleanup := removeAuthEnvVar(t)
@@ -147,7 +147,7 @@ func TestPostgresAuthentication(t *testing.T) {
147147
*postgresConnName},
148148
},
149149
}
150-
if ipType == "public" {
150+
if *ipType == "public" {
151151
tcs = append(tcs,
152152
[]struct {
153153
desc string

tests/sqlserver_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ func TestSQLServerAuthentication(t *testing.T) {
8585
requireSQLServerVars(t)
8686

8787
var creds string
88-
if ipType == "public" {
88+
if *ipType == "public" {
8989
creds = keyfile(t)
9090
}
9191
tok, path, cleanup := removeAuthEnvVar(t)
@@ -107,7 +107,7 @@ func TestSQLServerAuthentication(t *testing.T) {
107107
*sqlserverConnName},
108108
},
109109
}
110-
if ipType == "public" {
110+
if *ipType == "public" {
111111
tcs = append(tcs,
112112
[]struct {
113113
desc string

0 commit comments

Comments
 (0)