[debugger] fixed flaky test PacketsNumberTest.testStepOverWithWatchReturnValue IDEA-354458 IJI-2040

GitOrigin-RevId: 1b5264dc453c9393893a2cfa4813be0bd492a609
This commit is contained in:
Egor Ushakov
2024-07-15 17:06:34 +02:00
committed by intellij-monorepo-bot
parent 82e8947e95
commit ecb5325121

View File

@@ -585,7 +585,7 @@ public abstract class ExecutionWithDebuggerToolsTestCase extends ExecutionTestCa
public void paused(SuspendContextImpl suspendContext) {
// Need to add SuspendContextCommandImpl because the stepping pause is not now in SuspendContextCommandImpl
DebuggerManagerThreadImpl debuggerManagerThread = Objects.requireNonNull(suspendContext.getDebugProcess()).getManagerThread();
debuggerManagerThread.schedule(new SuspendContextCommandImpl(suspendContext) {
debuggerManagerThread.invoke(new SuspendContextCommandImpl(suspendContext) {
@Override
public void contextAction(@NotNull SuspendContextImpl suspendContext) {
pausedImpl(suspendContext);