Explorar el Código

hashindex_pytest.py: add test_hashindex_compact_stress

Dan Christensen hace 2 años
padre
commit
6aa53a5627
Se han modificado 1 ficheros con 6 adiciones y 0 borrados
  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()