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

chore: debug failing test #1186

Closed
wants to merge 2 commits into from
Closed
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
7 changes: 4 additions & 3 deletions test/test-v8debugapi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1123,13 +1123,12 @@
const bp: stackdriver.Breakpoint = {
id: 'fake-id-124',
// TODO(dominickramer): This path can be lest strict when this file has
// been
// converted to Typescript.
// been converted to Typescript.
location: {path: 'build/test/test-v8debugapi-code.js', line: 10},
expressions: ['process.env', 'hasGetter'],
} as {} as stackdriver.Breakpoint;
const oldMaxData = config.capture.maxDataSize;
config.capture.maxDataSize = 20000;
config.capture.maxDataSize = 200000;
api.set(bp, err1 => {
assert.ifError(err1);
api.wait(bp, err2 => {
Expand All @@ -1145,6 +1144,8 @@
});
const hasGetter = bp.evaluatedExpressions[1];
const getterVal = bp.variableTable[hasGetter!.varTableIndex!];
console.log(getterVal);

Check failure on line 1147 in test/test-v8debugapi.ts

View workflow job for this annotation

GitHub Actions / lint

Replace `↹` with `········`
console.log(getterVal!.members);

Check failure on line 1148 in test/test-v8debugapi.ts

View workflow job for this annotation

GitHub Actions / lint

Replace `↹` with `········`
assert(
getterVal!.members!.some(m => {
return m.value === '5';
Expand Down
Loading