From 64a12898ad5dfa03e5a4e16776dc0a76357ced05 Mon Sep 17 00:00:00 2001 From: Valentin Rothberg Date: Mon, 11 May 2020 13:20:32 +0200 Subject: shm_lock_test: add nil check Fixes: #6164 Signed-off-by: Valentin Rothberg --- libpod/lock/shm/shm_lock_test.go | 1 + 1 file changed, 1 insertion(+) diff --git a/libpod/lock/shm/shm_lock_test.go b/libpod/lock/shm/shm_lock_test.go index 41a150c59..362821c62 100644 --- a/libpod/lock/shm/shm_lock_test.go +++ b/libpod/lock/shm/shm_lock_test.go @@ -76,6 +76,7 @@ func TestCreateNewSHMBadSizeRoundsUp(t *testing.T) { // Odd number, not a power of 2, should never be a word size on a system lock, err := CreateSHMLock("/test1", 7) assert.NoError(t, err) + assert.NotNil(t, lock) assert.Equal(t, lock.GetMaxLocks(), BitmapSize) -- cgit v1.2.3-54-g00ecf