diff options
author | James Moger <james.moger@gitblit.com> | 2014-09-08 13:38:49 -0400 |
---|---|---|
committer | James Moger <james.moger@gitblit.com> | 2014-09-08 13:40:22 -0400 |
commit | 936af6a24bb80fc6177ecacc44a4be79d79f3de4 (patch) | |
tree | 61c02e0ef144167bb0628dc87c8eb07d072fc23f /src/test | |
parent | aa5829ac4a8c770ad311fd505686f7636a5e4ad5 (diff) | |
download | gitblit-936af6a24bb80fc6177ecacc44a4be79d79f3de4.tar.gz gitblit-936af6a24bb80fc6177ecacc44a4be79d79f3de4.zip |
Expose setting to control Lucene repository indexing frequency
Diffstat (limited to 'src/test')
-rw-r--r-- | src/test/java/com/gitblit/tests/TimeUtilsTest.java | 8 |
1 files changed, 4 insertions, 4 deletions
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));
}
}
|