From ecb53251218c5d6293d329892ad950d31d91cdd8 Mon Sep 17 00:00:00 2001 From: Egor Ushakov Date: Mon, 15 Jul 2024 17:06:34 +0200 Subject: [PATCH] [debugger] fixed flaky test PacketsNumberTest.testStepOverWithWatchReturnValue IDEA-354458 IJI-2040 GitOrigin-RevId: 1b5264dc453c9393893a2cfa4813be0bd492a609 --- .../intellij/debugger/ExecutionWithDebuggerToolsTestCase.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java/testFramework/src/com/intellij/debugger/ExecutionWithDebuggerToolsTestCase.java b/java/testFramework/src/com/intellij/debugger/ExecutionWithDebuggerToolsTestCase.java index b20a9bb991ff..ebc992263741 100644 --- a/java/testFramework/src/com/intellij/debugger/ExecutionWithDebuggerToolsTestCase.java +++ b/java/testFramework/src/com/intellij/debugger/ExecutionWithDebuggerToolsTestCase.java @@ -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);