close iterator (#221)

fix test code.
refter to https://github.com/pingcap-incubator/tinykv/issues/167
This commit is contained in:
toyohito murooka 2020-10-09 15:05:17 +09:00 committed by GitHub
parent fc36c301fb
commit 9c3a38a059
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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{