bbgo icon indicating copy to clipboard operation
bbgo copied to clipboard

fix flaky ci test

Open c9s opened this issue 3 months ago • 0 comments

--- FAIL: TestHedgeMarket_startAndHedge (0.12s)
    order_execution.go:343: Unexpected call to *mocks.MockExchangeExtended.SubmitOrder([context.Background.WithCancel.WithCancel { BTCUSDT SELL MARKET 0 1 0 0 { BTCUSDT  2 8 USDT BTC 10 10 0.001 0 0.0001 0.01 0 0 0}  0  MARGIN_BUY false false }]) at /home/runner/work/bbgo/bbgo/pkg/bbgo/order_execution.go:343 because: 
        expected call at /home/runner/work/bbgo/bbgo/pkg/strategy/xmaker/hedgemarket_test.go:149 doesn't match the argument at index 1.
        Got: { BTCUSDT SELL MARKET 0 1 0 0 { BTCUSDT  2 8 USDT BTC 10 10 0.001 0 0.0001 0.01 0 0 0}  0  MARGIN_BUY false false } (types.SubmitOrder)
        Want: is equal to { BTCUSDT SELL MARKET 0 2 0 0 { BTCUSDT  2 8 USDT BTC 10 10 0.001 0 0.0001 0.01 0 0 0}  0  MARGIN_BUY false false } (types.SubmitOrder)

c9s avatar Sep 29 '25 04:09 c9s