Check error in server_test.go (#9011)

Signed-off-by: sunby <bingyi.sun@zilliz.com>
pull/9030/head
sunby 2021-10-01 20:58:10 +08:00 committed by GitHub
parent 413ba12f50
commit 332025aace
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -421,7 +421,8 @@ func TestGetSegmentInfo(t *testing.T) {
segInfo := &datapb.SegmentInfo{
ID: 0,
}
svr.meta.AddSegment(NewSegmentInfo(segInfo))
err := svr.meta.AddSegment(NewSegmentInfo(segInfo))
assert.Nil(t, err)
req := &datapb.GetSegmentInfoRequest{
SegmentIDs: []int64{0},