Skip to content

Commit d3eb2b9

Browse files
committed
fixing a flaky breakpoint test
1 parent cf264d2 commit d3eb2b9

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

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)