From 4100a9d2cccb587c989f2ae56b6675c4bbed0422 Mon Sep 17 00:00:00 2001 From: Indy Prentice Date: Wed, 26 Jul 2023 12:23:55 -0300 Subject: [PATCH] Do not fetch cached result in test --- .../java/com/linkedin/metadata/search/SearchServiceTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/metadata-io/src/test/java/com/linkedin/metadata/search/SearchServiceTest.java b/metadata-io/src/test/java/com/linkedin/metadata/search/SearchServiceTest.java index 1013c63b06af3..ad836664d7f6d 100644 --- a/metadata-io/src/test/java/com/linkedin/metadata/search/SearchServiceTest.java +++ b/metadata-io/src/test/java/com/linkedin/metadata/search/SearchServiceTest.java @@ -125,7 +125,7 @@ private void clearCache() { public void testSearchService() throws Exception { SearchResult searchResult = _searchService.searchAcrossEntities(ImmutableList.of(ENTITY_NAME), "test", null, - null, 0, 10, new SearchFlags().setFulltext(true)); + null, 0, 10, new SearchFlags().setFulltext(true).setSkipCache(true)); assertEquals(searchResult.getNumEntities().intValue(), 0); searchResult = _searchService.searchAcrossEntities(ImmutableList.of(), "test", null, null, 0, 10, new SearchFlags().setFulltext(true));