Add empty lock test in 4A (#347)

* Add empty lock test in 4A
This commit is contained in:
Smith Cruise 2021-12-22 11:19:36 +08:00 committed by GitHub
parent dccddfae90
commit b82206ff30
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -104,6 +104,10 @@ func TestGetLock4A(t *testing.T) {
gotLock, err := txn.GetLock([]byte{1})
assert.Nil(t, err)
assert.Equal(t, lock, *gotLock)
emptyLock, err := txn.GetLock([]byte{2})
assert.Nil(t, err)
assert.Nil(t, emptyLock)
}
func TestDeleteLock4A(t *testing.T) {