From 6d85a731e5ffdea2ca5e161bfba82ff4e53fb64b Mon Sep 17 00:00:00 2001 From: Unrud Date: Mon, 8 Aug 2016 05:30:16 +0200 Subject: [PATCH] Disable syncing to disk for tests This reduces test time by almost 70%. --- radicale/tests/test_base.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/radicale/tests/test_base.py b/radicale/tests/test_base.py index 8d06dbce..db6d8a2f 100644 --- a/radicale/tests/test_base.py +++ b/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):