diff options
author | Matthew Heon <matthew.heon@gmail.com> | 2018-08-08 12:26:01 -0400 |
---|---|---|
committer | Matthew Heon <matthew.heon@pm.me> | 2019-01-04 09:45:59 -0500 |
commit | 3ed81051e814e688f7b4ae1bbc7c4d4c3fbd7d0f (patch) | |
tree | 8b63f3390d82228b451e7832dd42d5f4d329cedf /libpod/lock/shm_lock_test.go | |
parent | 185136cf0edee5288576b541517e0e994f6ee18d (diff) | |
download | podman-3ed81051e814e688f7b4ae1bbc7c4d4c3fbd7d0f.tar.gz podman-3ed81051e814e688f7b4ae1bbc7c4d4c3fbd7d0f.tar.bz2 podman-3ed81051e814e688f7b4ae1bbc7c4d4c3fbd7d0f.zip |
Add an SHM-backed Lock Manager implementation
Signed-off-by: Matthew Heon <matthew.heon@gmail.com>
Diffstat (limited to 'libpod/lock/shm_lock_test.go')
-rw-r--r-- | libpod/lock/shm_lock_test.go | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/libpod/lock/shm_lock_test.go b/libpod/lock/shm_lock_test.go index 6d4525f6a..4903d3a50 100644 --- a/libpod/lock/shm_lock_test.go +++ b/libpod/lock/shm_lock_test.go @@ -4,8 +4,8 @@ import ( "fmt" "os" "syscall" - "time" "testing" + "time" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" @@ -41,7 +41,6 @@ func TestMain(m *testing.M) { os.Exit(exitCode) } - func runLockTest(t *testing.T, testFunc func(*testing.T, *SHMLocks)) { locks, err := OpenSHMLock(numLocks) if err != nil { @@ -66,7 +65,7 @@ func runLockTest(t *testing.T, testFunc func(*testing.T, *SHMLocks)) { } }() - success := t.Run("locks", func (t *testing.T) { + success := t.Run("locks", func(t *testing.T) { testFunc(t, locks) }) if !success { |