Skip to content

Commit 87fbc14

Browse files
author
Peter Alfonsi
committed
tweak test
Signed-off-by: Peter Alfonsi <petealft@amazon.com>
1 parent edc7b38 commit 87fbc14

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

server/src/internalClusterTest/java/org/opensearch/indices/IndicesRequestCacheIT.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -864,7 +864,10 @@ public Weight createWeight(IndexSearcher searcher, ScoreMode scoreMode, float bo
864864
}
865865

866866
public void testMappingUpdateClearsCache() throws Exception {
867-
Client client = client();
867+
String node = internalCluster().startNode(
868+
Settings.builder().put(IndicesRequestCache.INDICES_REQUEST_CACHE_CLEANUP_INTERVAL_SETTING_KEY, TimeValue.timeValueMillis(1))
869+
); // Set IRC cleanup frequency low to ensure we don't get false positives when we check the cache hasn't been cleared
870+
Client client = client(node);
868871
String index = "index";
869872
String field = "k";
870873
assertAcked(

0 commit comments

Comments
 (0)