Disable syncing to disk for tests

This reduces test time by almost 70%.
This commit is contained in:
Unrud 2016-08-08 05:30:16 +02:00
parent f5f52582a1
commit 6d85a731e5

View File

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