summaryrefslogtreecommitdiffstats
path: root/src/test/java/com/gitblit
diff options
context:
space:
mode:
authorFlorian Zschocke <florian.zschocke@devolo.de>2019-06-10 22:11:35 +0200
committerFlorian Zschocke <florian.zschocke@devolo.de>2019-06-10 22:14:13 +0200
commita98689880e3568eb745fd76b054e9e33fca0857c (patch)
tree5c2717cb7bdc33ee68a20da9221ab267d530541d /src/test/java/com/gitblit
parent889c5cc75ef8a5b9313cf9300e35b5d68925f0bf (diff)
downloadgitblit-a98689880e3568eb745fd76b054e9e33fca0857c.tar.gz
gitblit-a98689880e3568eb745fd76b054e9e33fca0857c.zip
Fix revLog test that broke due to changes in the hello-world repository.
Diffstat (limited to 'src/test/java/com/gitblit')
-rw-r--r--src/test/java/com/gitblit/tests/JGitUtilsTest.java7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/test/java/com/gitblit/tests/JGitUtilsTest.java b/src/test/java/com/gitblit/tests/JGitUtilsTest.java
index a493884a..1d9150a1 100644
--- a/src/test/java/com/gitblit/tests/JGitUtilsTest.java
+++ b/src/test/java/com/gitblit/tests/JGitUtilsTest.java
@@ -656,10 +656,11 @@ public class JGitUtilsTest extends GitblitUnitTest {
commits = JGitUtils.getRevLog(repository, null, "java.java", 0, 2);
assertEquals(2, commits.size());
- // grab the commits since 2008-07-15
+ // grab the commits since 2019-06-05
commits = JGitUtils.getRevLog(repository, null,
- new SimpleDateFormat("yyyy-MM-dd").parse("2008-07-15"));
- assertEquals(12, commits.size());
+ new SimpleDateFormat("yyyy-MM-dd").parse("2019-06-05"));
+ assertEquals("Wrong number of commits since 2019-06-05.",
+ GitBlitSuite.helloworldSettings.getInteger(HelloworldKeys.commits.since_20190605, -1), commits.size());
repository.close();
}