Skip to content
This repository was archived by the owner on Apr 3, 2024. It is now read-only.

Commit daf015f

Browse files
authored
test: reduce dependence on repo layout (#225)
1 parent 04103e5 commit daf015f

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

test/test-debuglet.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ var assert = require('assert');
1919
var defaultConfig = require('../src/agent/config.js');
2020
var Debuglet = require('../src/agent/debuglet.js');
2121
var extend = require('extend');
22+
var path = require('path');
2223

2324
var DEBUGGEE_ID = 'bar';
2425
var API = 'https://clouddebugger.googleapis.com';
@@ -308,7 +309,7 @@ describe('Debuglet', function() {
308309

309310

310311
it('should pass source context to api if present', function(done) {
311-
process.chdir('test/fixtures');
312+
process.chdir(path.join(__dirname, 'fixtures'));
312313

313314
var debug = require('..')(
314315
{projectId: 'fake-project', credentials: fakeCredentials});

test/test-v8debugapi.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ function validateBreakpoint(breakpoint) {
113113

114114
describe('v8debugapi', function() {
115115
var config = extend({}, defaultConfig, {
116-
workingDirectory: path.join(process.cwd(), 'test'),
116+
workingDirectory: __dirname,
117117
forceNewAgent_: true
118118
});
119119
var logger = common.logger({ logLevel: config.logLevel });

0 commit comments

Comments
 (0)