Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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