From 140c69714e80526476b5ed0a4f4cdc3dba997c7b Mon Sep 17 00:00:00 2001 From: Varun Thacker Date: Mon, 19 Jun 2023 15:35:42 -0700 Subject: [PATCH] LuceneIndexStoreConfigTest should use true for throttling --- .../slack/kaldb/logstore/LuceneIndexStoreConfigTest.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/kaldb/src/test/java/com/slack/kaldb/logstore/LuceneIndexStoreConfigTest.java b/kaldb/src/test/java/com/slack/kaldb/logstore/LuceneIndexStoreConfigTest.java index 821f132c4f..7bacc9b919 100644 --- a/kaldb/src/test/java/com/slack/kaldb/logstore/LuceneIndexStoreConfigTest.java +++ b/kaldb/src/test/java/com/slack/kaldb/logstore/LuceneIndexStoreConfigTest.java @@ -12,7 +12,7 @@ public void testZeroCommitDuration() { .isThrownBy( () -> new LuceneIndexStoreConfig( - Duration.ZERO, Duration.ofSeconds(10), "indexRoot", "logfile", true, false)); + Duration.ZERO, Duration.ofSeconds(10), "indexRoot", "logfile", true, true)); } @Test @@ -21,7 +21,7 @@ public void testZeroRefreshDuration() { .isThrownBy( () -> new LuceneIndexStoreConfig( - Duration.ofSeconds(10), Duration.ZERO, "indexRoot", "logfile", true, false)); + Duration.ofSeconds(10), Duration.ZERO, "indexRoot", "logfile", true, true)); } @Test @@ -35,7 +35,7 @@ public void testNegativeCommitDuration() { "indexRoot", "logfile", true, - false)); + true)); } @Test @@ -49,6 +49,6 @@ public void testNegativeRefreshDuration() { "indexRoot", "logfile", true, - false)); + true)); } }