From a5716109a97639d2d87557740fc5fecbf09c4cd0 Mon Sep 17 00:00:00 2001 From: dragonmacher <48328597+dragonmacher@users.noreply.github.com> Date: Fri, 21 Jan 2022 12:06:44 -0500 Subject: [PATCH] Test fixes --- .../plugin/core/navigation/GoToAddressLabelPluginTest.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Ghidra/Features/Base/src/test.slow/java/ghidra/app/plugin/core/navigation/GoToAddressLabelPluginTest.java b/Ghidra/Features/Base/src/test.slow/java/ghidra/app/plugin/core/navigation/GoToAddressLabelPluginTest.java index 132a10fe1b..6fc6d1381b 100644 --- a/Ghidra/Features/Base/src/test.slow/java/ghidra/app/plugin/core/navigation/GoToAddressLabelPluginTest.java +++ b/Ghidra/Features/Base/src/test.slow/java/ghidra/app/plugin/core/navigation/GoToAddressLabelPluginTest.java @@ -506,20 +506,19 @@ public class GoToAddressLabelPluginTest extends AbstractGhidraHeadedIntegrationT public void testQueryResultsMaxHitsDynamicFound() throws Exception { loadProgram("x86"); Options opt = plugin.getTool().getOptions(PluginConstants.SEARCH_OPTION_NAME); - opt.getInt(GhidraOptions.OPTION_SEARCH_LIMIT, 20); + opt.setInt(GhidraOptions.OPTION_SEARCH_LIMIT, 20); setText("L*"); performOkCallback(); GhidraProgramTableModel model = waitForModel(); assertEquals(20, model.getRowCount()); - } @Test public void testQueryResultsMaxHitsDefinedFound() throws Exception { loadProgram("x86"); Options opt = plugin.getTool().getOptions(PluginConstants.SEARCH_OPTION_NAME); - opt.getInt(GhidraOptions.OPTION_SEARCH_LIMIT, 5); + opt.setInt(GhidraOptions.OPTION_SEARCH_LIMIT, 5); createLabel("1006960", "abc1"); createLabel("1006961", "abc2"); @@ -533,7 +532,6 @@ public class GoToAddressLabelPluginTest extends AbstractGhidraHeadedIntegrationT performOkCallback(); GhidraProgramTableModel model = waitForModel(); assertEquals(5, model.getRowCount()); - } @Test