Skip to content

Commit

Permalink
Merge pull request #505 from stephenplusplus/spp--tests-path-resolve
Browse files Browse the repository at this point in the history
use path.resolve to find keyfile path
  • Loading branch information
stephenplusplus committed Apr 21, 2015
2 parents 1aff546 + 61dcbdc commit c3b8954
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion regression/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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, {
Expand Down

0 comments on commit c3b8954

Please sign in to comment.