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:
commit
1e5c9f63a0
5 changed files with 55 additions and 39 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue