Skip to content

Commit c75f90e

Browse files
testing: use project_id from parsed credentials
1 parent 2798116 commit c75f90e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

system-test/env.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ var credentials = process.env.GCLOUD_TESTS_CREDENTIALS;
3131

3232
if (credentials) {
3333
googleCloudConfig.credentials = JSON.parse(credentials);
34-
googleCloudConfig.projectId = credentials.project_id;
34+
googleCloudConfig.projectId = googleCloudConfig.credentials.project_id;
3535
} else {
3636
googleCloudConfig.projectId = process.env.GCLOUD_TESTS_PROJECT_ID;
3737
googleCloudConfig.keyFilename = process.env.GCLOUD_TESTS_KEY;

0 commit comments

Comments
 (0)