mirror of
https://github.com/containers/podman.git
synced 2025-10-17 19:24:04 +08:00
Update unit tests to use in-memory lock manager
Signed-off-by: Matthew Heon <matthew.heon@gmail.com>
This commit is contained in:

committed by
Matthew Heon

parent
35361595f3
commit
625c7e18ef
@ -84,7 +84,7 @@ func (m *InMemoryManager) AllocateLock() (Locker, error) {
|
||||
// RetrieveLock retrieves a lock from the manager.
|
||||
func (m *InMemoryManager) RetrieveLock(id uint32) (Locker, error) {
|
||||
if id >= m.numLocks {
|
||||
return nil, errors.Errorf("given lock ID %d is too large - this manager only supports lock indexes up to %d", id, m.numLocks - 1)
|
||||
return nil, errors.Errorf("given lock ID %d is too large - this manager only supports lock indexes up to %d", id, m.numLocks-1)
|
||||
}
|
||||
|
||||
return m.locks[id], nil
|
||||
|
Reference in New Issue
Block a user