Skip to content

Commit a986898

Browse files
committed
Fix revLog test that broke due to changes in the hello-world repository.
1 parent 889c5cc commit a986898

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

src/test/data/hello-world.properties

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ commit.fifteen=5ebfaca
55
commit.added=192cded
66
commit.changed=b2c50ce
77
commit.deleted=8613bee10bde27a0fbaca66447cdc3f0f9483365
8+
commits.since_20190605=10
89
users.byEmail=11
910
users.byName=10
1011
files.top=14

src/test/java/com/gitblit/tests/JGitUtilsTest.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -656,10 +656,11 @@ public void testRevlog() throws Exception {
656656
commits = JGitUtils.getRevLog(repository, null, "java.java", 0, 2);
657657
assertEquals(2, commits.size());
658658

659-
// grab the commits since 2008-07-15
659+
// grab the commits since 2019-06-05
660660
commits = JGitUtils.getRevLog(repository, null,
661-
new SimpleDateFormat("yyyy-MM-dd").parse("2008-07-15"));
662-
assertEquals(12, commits.size());
661+
new SimpleDateFormat("yyyy-MM-dd").parse("2019-06-05"));
662+
assertEquals("Wrong number of commits since 2019-06-05.",
663+
GitBlitSuite.helloworldSettings.getInteger(HelloworldKeys.commits.since_20190605, -1), commits.size());
663664
repository.close();
664665
}
665666

0 commit comments

Comments
 (0)