summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2020-05-11 15:34:44 +0200
committerGitHub <noreply@github.com>2020-05-11 15:34:44 +0200
commitd8c6cc16843efac13b92758b1bf93e9d5897a212 (patch)
tree9b3fc341a55e7e654514d181c5437880bc865852
parentd473e6e35120ad254a62301a89be26e5ad589752 (diff)
parent64a12898ad5dfa03e5a4e16776dc0a76357ced05 (diff)
downloadpodman-d8c6cc16843efac13b92758b1bf93e9d5897a212.tar.gz
podman-d8c6cc16843efac13b92758b1bf93e9d5897a212.tar.bz2
podman-d8c6cc16843efac13b92758b1bf93e9d5897a212.zip
Merge pull request #6169 from vrothberg/fix-6164
shm_lock_test: add nil check
-rw-r--r--libpod/lock/shm/shm_lock_test.go1
1 files changed, 1 insertions, 0 deletions
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)