mirror of
https://github.com/talent-plan/tinykv.git
synced 2025-03-15 04:10:42 +08:00
close iterator (#221)
fix test code. refter to https://github.com/pingcap-incubator/tinykv/issues/167
This commit is contained in:
parent
fc36c301fb
commit
9c3a38a059
@ -327,6 +327,7 @@ func TestIterWithRawDelete1(t *testing.T) {
|
||||
assert.Nil(t, Set(s, cf, []byte{4}, []byte{233, 4}))
|
||||
|
||||
it, err := Iter(s, cf)
|
||||
defer it.Close()
|
||||
assert.Nil(t, err)
|
||||
|
||||
delete := &kvrpcpb.RawDeleteRequest{
|
||||
|
Loading…
Reference in New Issue
Block a user