Skip to content

Commit

Permalink
[DAP] Add some get() calls to wait for acks in a test
Browse files Browse the repository at this point in the history
  • Loading branch information
agarciadom committed Sep 2, 2024
1 parent 2017e61 commit f5bcd85
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -171,15 +171,15 @@ public void breakThenStepOut() throws Exception {
// First step out should stop the program at the line after the operation
final StepOutArguments args = new StepOutArguments();
args.setThreadId(adapter.threads().get().getThreads()[0].getId());
adapter.stepOut(args);
adapter.stepOut(args).get();

assertStoppedBecauseOf(StoppedEventArgumentsReason.STEP);
StackTraceResponse stackTrace = getStackTrace();
assertEquals("After the stepOut() call, the program should be stopped at the line after the operation call",
2, stackTrace.getStackFrames()[0].getLine());

// If we continue, we'll stop again at the breakpoint
adapter.continue_(new ContinueArguments());
adapter.continue_(new ContinueArguments()).get();
assertStoppedBecauseOf(StoppedEventArgumentsReason.BREAKPOINT);

// Second step out should reach the 'return' statement
Expand Down

0 comments on commit f5bcd85

Please sign in to comment.