Merge remote-tracking branch 'origin/GP-0-dragonmacher-test-fixes-2-15-23'

This commit is contained in:
Ryan Kurtz
2023-02-15 10:59:27 -05:00
4 changed files with 5 additions and 3 deletions
@@ -390,8 +390,7 @@ public class SearchTextPlugin3Test extends AbstractGhidraHeadedIntegrationTest {
Collections.sort(list);
Collections.reverse(list);
for (int i = 0; i < list.size(); i++) {
Address addr = list.get(i);
for (Address addr : list) {
pressSearchButton(dialog, searchButton);
ProgramLocation loc = cbPlugin.getCurrentLocation();
assertEquals(addr, loc.getAddress());
@@ -627,7 +626,8 @@ public class SearchTextPlugin3Test extends AbstractGhidraHeadedIntegrationTest {
setToggleButtonSelected(cb, true);
// install our own task monitor so we can cancel before the task finishes
CancellingStubTaskMonitorComponent testMonitor = new CancellingStubTaskMonitorComponent();
CancellingStubTaskMonitorComponent testMonitor =
runSwing(() -> new CancellingStubTaskMonitorComponent());
setInstanceField("taskMonitorComponent", dialog, testMonitor);
setText(tf, "hello");