Переглянути джерело

Disable syncing to disk for tests

This reduces test time by almost 70%.
Unrud 9 роки тому
батько
коміт
6d85a731e5
1 змінених файлів з 4 додано та 0 видалено
  1. 4 0
      radicale/tests/test_base.py

+ 4 - 0
radicale/tests/test_base.py

@@ -711,6 +711,8 @@ class TestMultiFileSystem(BaseRequests, BaseTest):
         super().setup()
         self.colpath = tempfile.mkdtemp()
         self.configuration.set("storage", "filesystem_folder", self.colpath)
+        # Disable syncing to disk for better performance
+        self.configuration.set("storage", "fsync", "False")
         self.application = Application(self.configuration, self.logger)
 
     def teardown(self):
@@ -725,6 +727,8 @@ class TestCustomStorageSystem(BaseRequests, BaseTest):
         super().setup()
         self.colpath = tempfile.mkdtemp()
         self.configuration.set("storage", "filesystem_folder", self.colpath)
+        # Disable syncing to disk for better performance
+        self.configuration.set("storage", "fsync", "False")
         self.application = Application(self.configuration, self.logger)
 
     def teardown(self):