protected void waitForSearch(int expectedResults) {

		waitForCondition(() -> {
			return runSwing(() -> !searchProvider.isBusy());
		}, "Timed-out waiting for search results");
		assertEquals(expectedResults, searchProvider.getSearchResults().size());
	}
Base class for memory search tests.
Ghidra/Features/Base/src/test.slow/java/ghidra/features/base/memsearch/AbstractMemSearchTest.java