Skip to content

Ghidra is a software reverse engineering (SRE) framework

GP-0: Fixing Python test

Ryan Kurtz9e3052ac3ad1
diff --git a/Ghidra/Features/Python/src/test.slow/java/ghidra/python/PythonScriptTest.java b/Ghidra/Features/Python/src/test.slow/java/ghidra/python/PythonScriptTest.java
index 9c79e69e9f..e5b1e5554a 100644
--- a/Ghidra/Features/Python/src/test.slow/java/ghidra/python/PythonScriptTest.java
+++ b/Ghidra/Features/Python/src/test.slow/java/ghidra/python/PythonScriptTest.java
@@ -131,6 +131,8 @@ public class PythonScriptTest extends AbstractGhidraHeadedIntegrationTest {
script.set(state, TaskMonitor.DUMMY, writer);
script.run();
+ waitForSwing();
+
AtomicReference<String> ref = new AtomicReference<>();
runSwing(() -> {
String text = console.getText(0, console.getTextLength());