Skip to content

Ghidra is a software reverse engineering (SRE) framework

Tests - fixed timing issue in path highlighting test

dragonmacher0e83fdbe7049
diff --git a/Ghidra/Framework/Graph/src/test.slow/java/ghidra/graph/viewer/edge/VisualGraphPathHighlighterTest.java b/Ghidra/Framework/Graph/src/test.slow/java/ghidra/graph/viewer/edge/VisualGraphPathHighlighterTest.java
index 8514e96457..1b0edff5f3 100644
--- a/Ghidra/Framework/Graph/src/test.slow/java/ghidra/graph/viewer/edge/VisualGraphPathHighlighterTest.java
+++ b/Ghidra/Framework/Graph/src/test.slow/java/ghidra/graph/viewer/edge/VisualGraphPathHighlighterTest.java
@@ -15,8 +15,7 @@
*/
package ghidra.graph.viewer.edge;
-import static org.junit.Assert.assertFalse;
-import static org.junit.Assert.assertTrue;
+import static org.junit.Assert.*;
import java.util.*;
@@ -726,10 +725,12 @@ public class VisualGraphPathHighlighterTest extends AbstractVisualGraphTest {
private void focusMode(PathHighlightMode mode) {
swing(() -> graphComponent.setVertexFocusPathHighlightMode(mode));
+ waitForPathHighligter();
}
private void hoverMode(PathHighlightMode mode) {
swing(() -> graphComponent.setVertexHoverPathHighlightMode(mode));
+ waitForPathHighligter();
}
@Override