diff --git a/internal/datacoord/server_test.go b/internal/datacoord/server_test.go index 96995d8534..ada5790dd4 100644 --- a/internal/datacoord/server_test.go +++ b/internal/datacoord/server_test.go @@ -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},