From 936af6a24bb80fc6177ecacc44a4be79d79f3de4 Mon Sep 17 00:00:00 2001 From: James Moger Date: Mon, 8 Sep 2014 13:38:49 -0400 Subject: Expose setting to control Lucene repository indexing frequency --- src/test/java/com/gitblit/tests/TimeUtilsTest.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/test') diff --git a/src/test/java/com/gitblit/tests/TimeUtilsTest.java b/src/test/java/com/gitblit/tests/TimeUtilsTest.java index fb38ffd3..ef506ef4 100644 --- a/src/test/java/com/gitblit/tests/TimeUtilsTest.java +++ b/src/test/java/com/gitblit/tests/TimeUtilsTest.java @@ -100,9 +100,9 @@ public class TimeUtilsTest extends GitblitUnitTest { @Test public void testFrequency() { - assertEquals(5, TimeUtils.convertFrequencyToMinutes("2 mins")); - assertEquals(10, TimeUtils.convertFrequencyToMinutes("10 mins")); - assertEquals(600, TimeUtils.convertFrequencyToMinutes("10 hours")); - assertEquals(14400, TimeUtils.convertFrequencyToMinutes(" 10 days ")); + assertEquals(5, TimeUtils.convertFrequencyToMinutes("2 mins", 5)); + assertEquals(10, TimeUtils.convertFrequencyToMinutes("10 mins", 5)); + assertEquals(600, TimeUtils.convertFrequencyToMinutes("10 hours", 5)); + assertEquals(14400, TimeUtils.convertFrequencyToMinutes(" 10 days ", 5)); } } -- cgit v1.2.3