From 1f89c3c4bed7d4e74bb417f77df5401a6d439c98 Mon Sep 17 00:00:00 2001 From: James McTavish Date: Wed, 20 Dec 2023 11:15:14 -0500 Subject: [PATCH 1/2] chore: debug failing test --- test/test-v8debugapi.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/test-v8debugapi.ts b/test/test-v8debugapi.ts index d907fbaf..803a99a0 100644 --- a/test/test-v8debugapi.ts +++ b/test/test-v8debugapi.ts @@ -1123,8 +1123,7 @@ describe('v8debugapi', () => { 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; @@ -1145,6 +1144,8 @@ describe('v8debugapi', () => { }); const hasGetter = bp.evaluatedExpressions[1]; const getterVal = bp.variableTable[hasGetter!.varTableIndex!]; + console.log(getterVal); + console.log(getterVal!.members); assert( getterVal!.members!.some(m => { return m.value === '5'; From 7325c027bbc742f6bccc23710d654897a3ba64e6 Mon Sep 17 00:00:00 2001 From: James McTavish Date: Wed, 20 Dec 2023 11:29:15 -0500 Subject: [PATCH 2/2] bump maxDataSize --- test/test-v8debugapi.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test-v8debugapi.ts b/test/test-v8debugapi.ts index 803a99a0..0b0b36ca 100644 --- a/test/test-v8debugapi.ts +++ b/test/test-v8debugapi.ts @@ -1128,7 +1128,7 @@ describe('v8debugapi', () => { 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 => {