Преглед на файлове

hashindex_pytest.py: add test_hashindex_compact_stress

Dan Christensen преди 2 години
родител
ревизия
6aa53a5627
променени са 1 файла, в които са добавени 6 реда и са изтрити 0 реда
  1. 6 0
      src/borg/testsuite/hashindex_pytest.py

+ 6 - 0
src/borg/testsuite/hashindex_pytest.py

@@ -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()