Rename some variables in unittest (#9484)

Signed-off-by: yudong.cai <yudong.cai@zilliz.com>
This commit is contained in:
Cai Yudong 2021-10-08 17:47:25 +08:00 committed by GitHub
parent ec9ec97cec
commit b9f5a6bb1e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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
}