mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-12-01 03:18:29 +08:00
Rename some variables in unittest (#9484)
Signed-off-by: yudong.cai <yudong.cai@zilliz.com>
This commit is contained in:
parent
ec9ec97cec
commit
b9f5a6bb1e
@ -186,7 +186,7 @@ func TestFlowGraphInsertBufferNode_Operate(t *testing.T) {
|
||||
iBNode.Operate([]flowgraph.Msg{fgMsg})
|
||||
}
|
||||
|
||||
func genFlowGraphMsg(insertChannelName string) flowGraphMsg {
|
||||
func genFlowGraphMsg(chanName string) flowGraphMsg {
|
||||
|
||||
timeRange := TimeRange{
|
||||
timestampMin: 0,
|
||||
@ -195,13 +195,13 @@ func genFlowGraphMsg(insertChannelName string) flowGraphMsg {
|
||||
|
||||
startPos := []*internalpb.MsgPosition{
|
||||
{
|
||||
ChannelName: insertChannelName,
|
||||
ChannelName: chanName,
|
||||
MsgID: make([]byte, 0),
|
||||
Timestamp: 0,
|
||||
},
|
||||
}
|
||||
|
||||
var iMsg = &flowGraphMsg{
|
||||
var fgMsg = &flowGraphMsg{
|
||||
insertMessages: make([]*msgstream.InsertMsg, 0),
|
||||
timeRange: TimeRange{
|
||||
timestampMin: timeRange.timestampMin,
|
||||
@ -212,9 +212,9 @@ func genFlowGraphMsg(insertChannelName string) flowGraphMsg {
|
||||
}
|
||||
|
||||
dataFactory := NewDataFactory()
|
||||
iMsg.insertMessages = append(iMsg.insertMessages, dataFactory.GetMsgStreamInsertMsgs(2)...)
|
||||
fgMsg.insertMessages = append(fgMsg.insertMessages, dataFactory.GetMsgStreamInsertMsgs(2)...)
|
||||
|
||||
return *iMsg
|
||||
return *fgMsg
|
||||
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user