summaryrefslogtreecommitdiff
path: root/libpod/lock/shm_lock_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'libpod/lock/shm_lock_test.go')
-rw-r--r--libpod/lock/shm_lock_test.go5
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 {