Disable syncing to disk for tests
This reduces test time by almost 70%.
This commit is contained in:
parent
f5f52582a1
commit
6d85a731e5
@ -711,6 +711,8 @@ class TestMultiFileSystem(BaseRequests, BaseTest):
|
|||||||
super().setup()
|
super().setup()
|
||||||
self.colpath = tempfile.mkdtemp()
|
self.colpath = tempfile.mkdtemp()
|
||||||
self.configuration.set("storage", "filesystem_folder", self.colpath)
|
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)
|
self.application = Application(self.configuration, self.logger)
|
||||||
|
|
||||||
def teardown(self):
|
def teardown(self):
|
||||||
@ -725,6 +727,8 @@ class TestCustomStorageSystem(BaseRequests, BaseTest):
|
|||||||
super().setup()
|
super().setup()
|
||||||
self.colpath = tempfile.mkdtemp()
|
self.colpath = tempfile.mkdtemp()
|
||||||
self.configuration.set("storage", "filesystem_folder", self.colpath)
|
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)
|
self.application = Application(self.configuration, self.logger)
|
||||||
|
|
||||||
def teardown(self):
|
def teardown(self):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user