Fix static-check (#9776)

Signed-off-by: yudong.cai <yudong.cai@zilliz.com>
pull/9775/head
Cai Yudong 2021-10-13 13:22:33 +08:00 committed by GitHub
parent 31c3942ca7
commit a63ef91c74
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -195,10 +195,9 @@ func TestEstimateMemorySize(t *testing.T) {
assert.Nil(t, err)
buf := bytes.NewBuffer(blob.Value)
desc := &descriptorEvent{}
_, _ = readMagicNumber(buf)
desc, _ = ReadDescriptorEvent(buf)
desc, _ := ReadDescriptorEvent(buf)
size, err = EstimateMemorySize(memoryKV, blob.Key)
assert.Nil(t, err)