hashindex_pytest.py: add test_hashindex_compact_stress

This commit is contained in:
Dan Christensen 2023-02-11 19:13:20 -05:00
parent 51b29ab426
commit 6aa53a5627
1 changed files with 6 additions and 0 deletions

View File

@ -67,3 +67,9 @@ def test_hashindex_compact():
assert size_rebuilt > size_compact + 1
# did we lose anything?
verify_hash_table(kv, idx)
@pytest.mark.skipif("BORG_TESTS_SLOW" not in os.environ, reason="slow tests not enabled, use BORG_TESTS_SLOW=1")
def test_hashindex_compact_stress():
for _ in range(100):
test_hashindex_compact()