Skip to content

Commit a4fccab

Browse files
committed
fixing breakpoint test as it's failing in ci
1 parent 86d8443 commit a4fccab

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

src/gdb/GDBDebugSessionBase.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2696,7 +2696,7 @@ export abstract class GDBDebugSessionBase extends LoggingDebugSession {
26962696
memoryReferenceResult.value.split(' ')[0];
26972697
}
26982698
hasMemoryReference = true;
2699-
} catch (err) {
2699+
} catch {
27002700
hasMemoryReference = false;
27012701
}
27022702
}

src/integration-tests/breakpoints.spec.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -444,6 +444,7 @@ describe('breakpoints', async function () {
444444
// win32 host can only pause remote + mi-async targets
445445
this.skip();
446446
}
447+
const firstStoppedEvent = dc.waitForEvent('stopped');
447448
let response = await dc.setBreakpointsRequest({
448449
source: {
449450
name: 'count.c',
@@ -458,7 +459,7 @@ describe('breakpoints', async function () {
458459
});
459460
expect(response.body.breakpoints.length).to.eq(1);
460461
await dc.configurationDoneRequest();
461-
await dc.waitForEvent('stopped');
462+
await firstStoppedEvent;
462463
const scope = await getScopes(dc);
463464
await dc.continueRequest({ threadId: scope.thread.id });
464465

0 commit comments

Comments
 (0)