Lines Matching full:locking
14 from autotest_lib.utils.frozen_chromite.lib import locking
58 This test intentionally uses a real locking.FileLock to ensure that
59 locking API is used correctly.
64 file_lock = locking.FileLock(store._lock_path,
65 locktype=locking.FLOCK)
74 This test intentionally uses a real locking.FileLock to ensure that
75 locking API is used correctly.
82 file_lock = locking.FileLock(store._lock_path,
83 locktype=locking.FLOCK)
122 @mock.patch('autotest_lib.utils.frozen_chromite.lib.locking.FileLock',
125 """Tests that commit succeeds when locking requires retries.
127 @param mock_file_lock_class: A patched version of the locking.FileLock
133 locking.LockNotAcquiredError('Testing error'),
143 @mock.patch('autotest_lib.utils.frozen_chromite.lib.locking.FileLock',
146 """Tests that refresh succeeds when locking requires retries.
148 @param mock_file_lock_class: A patched version of the locking.FileLock
157 locking.LockNotAcquiredError('Testing error'),
158 locking.LockNotAcquiredError('Testing error'),
169 @mock.patch('autotest_lib.utils.frozen_chromite.lib.locking.FileLock',
174 @param mock_file_lock_class: A patched version of the locking.FileLock
180 locking.LockNotAcquiredError('Testing error'))