1
0
Fork 0
mirror of https://github.com/Kozea/Radicale.git synced 2025-08-16 19:00:54 +00:00

Merge pull request #468 from Unrud/disablefsync

Add option to disable syncing to disk
This commit is contained in:
Guillaume Ayoub 2016-08-08 13:00:12 +02:00 committed by GitHub
commit 1e5c9f63a0
5 changed files with 55 additions and 39 deletions

View file

@ -726,6 +726,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):
@ -740,6 +742,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):