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

Commit 041bcd8

Browse files
kjinDominicKramer
authored andcommitted
test: temporarily skip line-1 test (#738)
* test: temporarily skip line-1 test * refactor: run gts fix
1 parent c1fbbf7 commit 041bcd8

File tree

2 files changed

+26
-25
lines changed

2 files changed

+26
-25
lines changed

src/agent/controller.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ export class Controller extends ServiceObject {
125125
} else if (response.statusCode === 404) {
126126
// The v2 API returns 404 (google.rpc.Code.NOT_FOUND) when the agent
127127
// registration expires. We should re-register.
128-
callback(null, response as {} as request.Response);
128+
callback(null, (response as {}) as request.Response);
129129
return;
130130
} else if (response.statusCode !== 200) {
131131
callback(
@@ -137,7 +137,7 @@ export class Controller extends ServiceObject {
137137
} else {
138138
body = body || {};
139139
that.nextWaitToken = body.nextWaitToken;
140-
callback(null, response as {} as request.Response, body);
140+
callback(null, (response as {}) as request.Response, body);
141141
}
142142
}
143143
);

test/test-v8debugapi.ts

Lines changed: 24 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1819,29 +1819,30 @@ describe('v8debugapi', () => {
18191819
});
18201820
});
18211821

1822-
it('should correctly stop on line-1 breakpoints', done => {
1823-
const foo = require('./fixtures/foo.js');
1824-
// TODO(dominickramer): Have this actually implement Breakpoint
1825-
const bp: stackdriver.Breakpoint = ({
1826-
id: 'bp-line-1',
1827-
location: {path: 'foo.js', line: 1, column: 45},
1828-
} as {}) as stackdriver.Breakpoint;
1829-
api.set(bp, err1 => {
1830-
assert.ifError(err1);
1831-
api.wait(bp, err2 => {
1832-
assert.ifError(err2);
1833-
assert.ok(bp.stackFrames);
1834-
1835-
api.clear(bp, err3 => {
1836-
assert.ifError(err3);
1837-
done();
1838-
});
1839-
});
1840-
process.nextTick(() => {
1841-
foo();
1842-
});
1843-
});
1844-
});
1822+
// Skipped until #737 is resolved.
1823+
// it('should correctly stop on line-1 breakpoints', done => {
1824+
// const foo = require('./fixtures/foo.js');
1825+
// // TODO(dominickramer): Have this actually implement Breakpoint
1826+
// const bp: stackdriver.Breakpoint = ({
1827+
// id: 'bp-line-1',
1828+
// location: {path: 'foo.js', line: 1, column: 45},
1829+
// } as {}) as stackdriver.Breakpoint;
1830+
// api.set(bp, err1 => {
1831+
// assert.ifError(err1);
1832+
// api.wait(bp, err2 => {
1833+
// assert.ifError(err2);
1834+
// assert.ok(bp.stackFrames);
1835+
1836+
// api.clear(bp, err3 => {
1837+
// assert.ifError(err3);
1838+
// done();
1839+
// });
1840+
// });
1841+
// process.nextTick(() => {
1842+
// foo();
1843+
// });
1844+
// });
1845+
// });
18451846

18461847
it('should not silence errors thrown in the wait callback', done => {
18471848
const message = 'This exception should not be silenced';

0 commit comments

Comments
 (0)