diff options
author | kylezhao <kylezhao@tencent.com> | 2021-09-28 10:48:11 +0800 |
---|---|---|
committer | kylezhao <kylezhao@tencent.com> | 2021-10-08 11:12:31 +0800 |
commit | 578b6a79a3de1dcb933f3f58f5e6b5b133371360 (patch) | |
tree | b4a3e7233a1770d47a6f77bc2a6bf207bcb59213 /org.eclipse.jgit.test/tst/org | |
parent | 4657e7a99aef1f102f228ab8ea0e3c52d27a94ff (diff) | |
download | jgit-578b6a79a3de1dcb933f3f58f5e6b5b133371360.tar.gz jgit-578b6a79a3de1dcb933f3f58f5e6b5b133371360.zip |
GarbageCollectCommand: add numberOfBitmaps to statistics
Change-Id: I630afac9408c7313d1cecb1b24476f645c94fc27
Signed-off-by: kylezhao <kylezhao@tencent.com>
Diffstat (limited to 'org.eclipse.jgit.test/tst/org')
-rw-r--r-- | org.eclipse.jgit.test/tst/org/eclipse/jgit/api/GarbageCollectCommandTest.java | 4 | ||||
-rw-r--r-- | org.eclipse.jgit.test/tst/org/eclipse/jgit/api/PushCommandTest.java | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/org.eclipse.jgit.test/tst/org/eclipse/jgit/api/GarbageCollectCommandTest.java b/org.eclipse.jgit.test/tst/org/eclipse/jgit/api/GarbageCollectCommandTest.java index 623cdde7b7..f98db3497b 100644 --- a/org.eclipse.jgit.test/tst/org/eclipse/jgit/api/GarbageCollectCommandTest.java +++ b/org.eclipse.jgit.test/tst/org/eclipse/jgit/api/GarbageCollectCommandTest.java @@ -39,7 +39,7 @@ public class GarbageCollectCommandTest extends RepositoryTestCase { Date expire = GitDateParser.parse("now", null, SystemReader .getInstance().getLocale()); Properties res = git.gc().setExpire(expire).call(); - assertTrue(res.size() == 7); + assertTrue(res.size() == 8); } @Test @@ -57,6 +57,6 @@ public class GarbageCollectCommandTest extends RepositoryTestCase { .setExpire( GitDateParser.parse("now", null, SystemReader .getInstance().getLocale())).call(); - assertTrue(res.size() == 7); + assertTrue(res.size() == 8); } } diff --git a/org.eclipse.jgit.test/tst/org/eclipse/jgit/api/PushCommandTest.java b/org.eclipse.jgit.test/tst/org/eclipse/jgit/api/PushCommandTest.java index 5ddc16aaaa..a786065561 100644 --- a/org.eclipse.jgit.test/tst/org/eclipse/jgit/api/PushCommandTest.java +++ b/org.eclipse.jgit.test/tst/org/eclipse/jgit/api/PushCommandTest.java @@ -324,7 +324,7 @@ public class PushCommandTest extends RepositoryTestCase { // run a gc to ensure we have a bitmap index Properties res = git1.gc().setExpire(null).call(); - assertEquals(7, res.size()); + assertEquals(8, res.size()); // create another commit so we have something else to push writeTrashFile("b", "content of b"); |