summaryrefslogtreecommitdiff
path: root/libpod/lock/shm
diff options
context:
space:
mode:
authorMatthew Heon <matthew.heon@gmail.com>2018-09-23 14:02:36 -0400
committerMatthew Heon <matthew.heon@pm.me>2019-01-04 09:51:09 -0500
commit625c7e18ef2b7f47a853c42f1a07fec730dbc91e (patch)
treea6d2c4ffefb916b26cadcd541f1dac5a2863c41c /libpod/lock/shm
parent35361595f36728958e6abb2c37c22d79a776913a (diff)
downloadpodman-625c7e18ef2b7f47a853c42f1a07fec730dbc91e.tar.gz
podman-625c7e18ef2b7f47a853c42f1a07fec730dbc91e.tar.bz2
podman-625c7e18ef2b7f47a853c42f1a07fec730dbc91e.zip
Update unit tests to use in-memory lock manager
Signed-off-by: Matthew Heon <matthew.heon@gmail.com>
Diffstat (limited to 'libpod/lock/shm')
-rw-r--r--libpod/lock/shm/shm_lock_test.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/libpod/lock/shm/shm_lock_test.go b/libpod/lock/shm/shm_lock_test.go
index bdf0b19e5..0f3a96cca 100644
--- a/libpod/lock/shm/shm_lock_test.go
+++ b/libpod/lock/shm/shm_lock_test.go
@@ -17,8 +17,10 @@ import (
// to test without actually having multiple processes...
// We can at least verify that the locks work within the local process.
-// 4 * BITMAP_SIZE to ensure we have to traverse bitmaps
-var numLocks uint32 = 4 * BitmapSize
+var (
+ // 4 * BITMAP_SIZE to ensure we have to traverse bitmaps
+ numLocks = 4 * BitmapSize
+)
const lockPath = "/libpod_test"