Skip to content

Commit 5ecb710

Browse files
committed
instance_host is deleted by the server-unix test
1 parent ae36e28 commit 5ecb710

File tree

2 files changed

+11
-10
lines changed

2 files changed

+11
-10
lines changed
Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
{
2-
"env": {
3-
"INSTANCE_HOST": "127.0.0.1",
4-
"INSTANCE_CONNECTION_NAME": "nodejs-docs-samples-tests:us-central1:mysql-ci",
5-
"CLOUD_SQL_CONNECTION_NAME": "nodejs-docs-samples-tests:us-central1:mysql-ci",
6-
"DB_NAME": "kokoro_ci",
7-
"DB_USER": "kokoro_ci"
8-
},
9-
"secrets": {
10-
"DB_PASS": "nodejs-docs-samples-tests/nodejs-docs-samples-sql-password" }
2+
"env": {
3+
"INSTANCE_HOST": "127.0.0.1",
4+
"INSTANCE_CONNECTION_NAME": "nodejs-docs-samples-tests:us-central1:mysql-ci",
5+
"CLOUD_SQL_CONNECTION_NAME": "$INSTANCE_CONNECTION_NAME",
6+
"INSTANCE_UNIX_SOCKET": "$INSTANCE_CONNECTION_NAME",
7+
"DB_NAME": "kokoro_ci",
8+
"DB_USER": "kokoro_ci"
9+
},
10+
"secrets": {
11+
"DB_PASS": "nodejs-docs-samples-tests/nodejs-docs-samples-sql-password"
1112
}
13+
}

cloud-sql/mysql/mysql/index.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,6 @@ const createPool = async () => {
9393
throw err;
9494
}
9595
}
96-
console.log("Instance vars: ", process.env.INSTANCE_HOST, " -- ", process.env.INSTANCE_UNIX_SOCKET)
9796

9897
if (process.env.INSTANCE_HOST) {
9998
// Use a TCP socket when INSTANCE_HOST (e.g., 127.0.0.1) is defined

0 commit comments

Comments
 (0)