mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-08 15:09:39 +07:00
Synchronize access to console in tests
GitOrigin-RevId: 81b588591e858fb9e2dd30c1681d6664bbd1b254
This commit is contained in:
committed by
intellij-monorepo-bot
parent
8e1c37b5ca
commit
bc39172e97
@@ -55,6 +55,9 @@ public abstract class ProcessWithConsoleRunner implements Disposable {
|
||||
*/
|
||||
@NotNull
|
||||
public final ConsoleViewImpl getConsole() {
|
||||
ApplicationManager.getApplication().invokeAndWait(() -> {
|
||||
myConsole.flushDeferredText();
|
||||
});
|
||||
return myConsole;
|
||||
}
|
||||
|
||||
@@ -89,7 +92,7 @@ public abstract class ProcessWithConsoleRunner implements Disposable {
|
||||
*/
|
||||
@NotNull
|
||||
public String getAllConsoleText() {
|
||||
return myConsole.getEditor().getDocument().getText();
|
||||
return getConsole().getEditor().getDocument().getText();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user