From 61dcbdc79b93a100ee52443f3179ce0cb0101b9e Mon Sep 17 00:00:00 2001 From: Stephen Sawchuk Date: Tue, 21 Apr 2015 10:31:25 -0400 Subject: [PATCH] use path.resolve to find keyfile path --- regression/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/regression/index.js b/regression/index.js index 85ee0b232e7..a9d176132b8 100644 --- a/regression/index.js +++ b/regression/index.js @@ -19,6 +19,7 @@ var assert = require('assert'); var env = require('./env'); var gcloud = require('../lib'); +var path = require('path'); // Test used to confirm we can perform a successful API operation. function canConnect(config, callback) { @@ -28,7 +29,7 @@ function canConnect(config, callback) { describe('environment', function() { it('should connect with credentials object', canConnect.bind(null, { projectId: env.projectId, - credentials: require(env.keyFilename) + credentials: require(path.resolve(process.cwd(), env.keyFilename)) })); it('should connect from a JSON keyFilename', canConnect.bind(null, {