From 3bfac019a88440a61fc51d026a13fa28535076d1 Mon Sep 17 00:00:00 2001 From: Unrud Date: Thu, 1 Jun 2017 16:10:50 +0200 Subject: [PATCH] Close lock file when running tests The name of configuration option was wrong. --- radicale/tests/test_auth.py | 2 +- radicale/tests/test_base.py | 2 +- radicale/tests/test_rights.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/radicale/tests/test_auth.py b/radicale/tests/test_auth.py index dc0fadd3..422f98ce 100644 --- a/radicale/tests/test_auth.py +++ b/radicale/tests/test_auth.py @@ -44,7 +44,7 @@ class TestBaseAuthRequests(BaseTest): # Disable syncing to disk for better performance self.configuration.set("storage", "filesystem_fsync", "False") # Required on Windows, doesn't matter on Unix - self.configuration.set("storage", "close_lock_file", "True") + self.configuration.set("storage", "filesystem_close_lock_file", "True") # Set incorrect authentication delay to a very low value self.configuration.set("auth", "delay", "0.002") diff --git a/radicale/tests/test_base.py b/radicale/tests/test_base.py index b8ceb849..9ace4bf9 100644 --- a/radicale/tests/test_base.py +++ b/radicale/tests/test_base.py @@ -883,7 +883,7 @@ class BaseFileSystemTest(BaseTest): # Disable syncing to disk for better performance self.configuration.set("storage", "filesystem_fsync", "False") # Required on Windows, doesn't matter on Unix - self.configuration.set("storage", "close_lock_file", "True") + self.configuration.set("storage", "filesystem_close_lock_file", "True") self.application = Application(self.configuration, self.logger) def teardown(self): diff --git a/radicale/tests/test_rights.py b/radicale/tests/test_rights.py index 4e80c261..0bdaf57c 100644 --- a/radicale/tests/test_rights.py +++ b/radicale/tests/test_rights.py @@ -38,7 +38,7 @@ class TestBaseAuthRequests(BaseTest): # Disable syncing to disk for better performance self.configuration.set("storage", "filesystem_fsync", "False") # Required on Windows, doesn't matter on Unix - self.configuration.set("storage", "close_lock_file", "True") + self.configuration.set("storage", "filesystem_close_lock_file", "True") def teardown(self): shutil.rmtree(self.colpath)