grid2: fix test for orderTag

This commit is contained in:
c9s 2022-12-19 18:51:39 +08:00
parent 811be78933
commit 6f2664b03e
No known key found for this signature in database
GPG Key ID: 7385E7E464CB0A54

View File

@ -444,7 +444,7 @@ func TestStrategy_handleOrderFilled(t *testing.T) {
Side: types.SideTypeSell,
TimeInForce: types.TimeInForceGTC,
Market: s.Market,
Tag: "grid",
Tag: orderTag,
}
orderExecutor := gridmocks.NewMockOrderExecutor(mockCtrl)
@ -509,7 +509,7 @@ func TestStrategy_handleOrderFilled(t *testing.T) {
Side: types.SideTypeSell,
TimeInForce: types.TimeInForceGTC,
Market: s.Market,
Tag: "grid",
Tag: orderTag,
}
orderExecutor := gridmocks.NewMockOrderExecutor(mockCtrl)
@ -577,7 +577,7 @@ func TestStrategy_handleOrderFilled(t *testing.T) {
Quantity: number(0.09166666),
TimeInForce: types.TimeInForceGTC,
Market: s.Market,
Tag: "grid",
Tag: orderTag,
}
orderExecutor.EXPECT().SubmitOrders(ctx, expectedSubmitOrder).Return([]types.Order{
{SubmitOrder: expectedSubmitOrder},
@ -591,7 +591,7 @@ func TestStrategy_handleOrderFilled(t *testing.T) {
Quantity: number(0.09999999),
TimeInForce: types.TimeInForceGTC,
Market: s.Market,
Tag: "grid",
Tag: orderTag,
}
orderExecutor.EXPECT().SubmitOrders(ctx, expectedSubmitOrder2).Return([]types.Order{
{SubmitOrder: expectedSubmitOrder2},
@ -664,7 +664,7 @@ func TestStrategy_handleOrderFilled(t *testing.T) {
Side: types.SideTypeSell,
TimeInForce: types.TimeInForceGTC,
Market: s.Market,
Tag: "grid",
Tag: orderTag,
}
orderExecutor := gridmocks.NewMockOrderExecutor(mockCtrl)
@ -680,7 +680,7 @@ func TestStrategy_handleOrderFilled(t *testing.T) {
Side: types.SideTypeBuy,
TimeInForce: types.TimeInForceGTC,
Market: s.Market,
Tag: "grid",
Tag: orderTag,
}
orderExecutor.EXPECT().SubmitOrders(ctx, expectedSubmitOrder2).Return([]types.Order{