mirror of
https://github.com/talent-plan/tinykv.git
synced 2024-12-26 12:50:11 +08:00
parent
dccddfae90
commit
b82206ff30
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user