Merge pull request #6169 from vrothberg/fix-6164
shm_lock_test: add nil check
This commit is contained in:
commit
d8c6cc1684
|
@ -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
|
// Odd number, not a power of 2, should never be a word size on a system
|
||||||
lock, err := CreateSHMLock("/test1", 7)
|
lock, err := CreateSHMLock("/test1", 7)
|
||||||
assert.NoError(t, err)
|
assert.NoError(t, err)
|
||||||
|
assert.NotNil(t, lock)
|
||||||
|
|
||||||
assert.Equal(t, lock.GetMaxLocks(), BitmapSize)
|
assert.Equal(t, lock.GetMaxLocks(), BitmapSize)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue