Skip to content

Commit f19d207

Browse files
committed
Fix repack test on Windows
Signed-off-by: James Couball <jcouball@yahoo.com>
1 parent 27be99c commit f19d207

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tests/units/test_repack.rb

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,14 @@ def test_repack
1111
r1.commit('my commit')
1212

1313
# see how big the repo is
14-
size1 = r1.repo_size
14+
size_before_repack = r1.repo_size
1515

1616
r1.repack
1717

1818
# see how big the repo is now, should be smaller
19-
assert(size1 > r1.repo_size)
19+
size_after_repack = r1.repo_size
20+
21+
assert_compare(size_before_repack, '>', size_after_repack, 'repack did not reduce the size of the repository')
2022
end
2123
end
2224
end

0 commit comments

Comments
 (0)