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
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):