diff --git a/internal/datacoord/meta_test.go b/internal/datacoord/meta_test.go index 5d688fc80a91f..741c227ec6e6d 100644 --- a/internal/datacoord/meta_test.go +++ b/internal/datacoord/meta_test.go @@ -182,7 +182,7 @@ func (suite *MetaBasicSuite) TestCollection() { } func (suite *MetaBasicSuite) TestCompleteCompactionMutation() { - getLatestSemgnets := func() *SegmentsInfo { + getLatestSegments := func() *SegmentsInfo { latestSegments := NewSegmentsInfo() for segID, segment := range map[UniqueID]*SegmentInfo{ 1: {SegmentInfo: &datapb.SegmentInfo{ @@ -219,7 +219,7 @@ func (suite *MetaBasicSuite) TestCompleteCompactionMutation() { mockChMgr := mocks.NewChunkManager(suite.T()) suite.Run("test complete with compactTo 0 num of rows", func() { - latestSegments := getLatestSemgnets() + latestSegments := getLatestSegments() compactToSeg := &datapb.CompactionSegment{ SegmentID: 4, InsertLogs: []*datapb.FieldBinlog{}, @@ -280,7 +280,7 @@ func (suite *MetaBasicSuite) TestCompleteCompactionMutation() { }) suite.Run("test complete compaction mutation", func() { - latestSegments := getLatestSemgnets() + latestSegments := getLatestSegments() compactToSeg := &datapb.CompactionSegment{ SegmentID: 3, InsertLogs: []*datapb.FieldBinlog{getFieldBinlogIDs(0, 50000)},